Whamcloud - gitweb
LU-14361 statahead: wait inuse entry finished during cleanup 91/49291/18
authorQian Yingjin <qian@ddn.com>
Thu, 1 Dec 2022 02:43:50 +0000 (21:43 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2024 06:53:38 +0000 (06:53 +0000)
commitd22c78fde8d75aecb6f712fd51bc4843a517cad4
tree0d4024f30d638efd4b4c20770900842d758347b4
parent629b0534e141be289d2e4c763fcd141af4acd3d2
LU-14361 statahead: wait inuse entry finished during cleanup

If the entry is being used by the user process when the statahead is
doing cleanup and quit, it must wait for the inuse entry finished
and then kill the local cached entries in statahead context.

Add sanity/test_123{k,l} to verify it.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I747badd85bd44cb20f7d37ca3126ca308a632371
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49291
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/obd_support.h
lustre/llite/llite_internal.h
lustre/llite/statahead.c
lustre/ptlrpc/batch.c
lustre/tests/sanity.sh