Whamcloud - gitweb
LU-10165 llite: disable statahead if starting statahead fail 17/29817/4
authorLai Siyao <lai.siyao@intel.com>
Fri, 27 Oct 2017 03:48:30 +0000 (11:48 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 1 Dec 2017 05:16:00 +0000 (05:16 +0000)
commit8b1bd1b88ae915c89fcbdc83abebe217a681a9e7
tree937f31e8b4a3d0264642be4618da073008d3dd46
parentebb01c9421a8007a34b69eb972aab45369446b23
LU-10165 llite: disable statahead if starting statahead fail

Once starting statahead thread fails, it should disable statahead.
Current code only does this when "sai != NULL", instead it should
check whether current process is opening this dir, so for cases
like current file is not the first dirent, or sai allocation fail,
it won't retry statahead.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: Iaedddd3659cdffeab51800f45b02f0b39c4a1ec1
Reviewed-on: https://review.whamcloud.com/29817
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/statahead.c