Whamcloud - gitweb
LU-10165 llite: disable statahead if starting statahead fail 66/32366/4
authorLai Siyao <lai.siyao@intel.com>
Fri, 27 Oct 2017 03:48:30 +0000 (11:48 +0800)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 3 Aug 2018 20:01:03 +0000 (20:01 +0000)
commit2c9f7be02c6efa56251e754efff23c37dd045d2f
tree65b4572ce862fd27e3c55a1230033c7843708e28
parent686a73ea9467c53d261cf12d0802bb1332d50f4a
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.

Lustre-change: https://review.whamcloud.com/29817
Lustre-commit: 8b1bd1b88ae915c89fcbdc83abebe217a681a9e7

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: Iaedddd3659cdffeab51800f45b02f0b39c4a1ec1
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32366
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/llite/statahead.c