Whamcloud - gitweb
EX-8027 pcc: wait for attach finished for detach command
authorQian Yingjin <qian@ddn.com>
Thu, 14 Sep 2023 06:43:32 +0000 (02:43 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:50:14 +0000 (21:50 +0000)
commit80094070c66338d70f01fe6f279f3314bd0849d7
tree22638c807b265a689dd68cd0ae37e386ebcabc4b
parentcf87904b5558e8aaff0805fb9ec8cb89704d06f1
EX-8027 pcc: wait for attach finished for detach command

When detach a file from a PCC backend, this file may be still
attaching state. At this time, we add a flag to wait for the
attach finished (PCC_DEATCH_FL_ATTACHING_WAIT). After that, retry
the detach.

Change-Id: If85d95be744e3f7d6a07f880e78de5b68b579ed6
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52373
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/pcc.c
lustre/utils/libhsm_scanner.h
lustre/utils/liblustreapi_pcc.c