Whamcloud - gitweb
EX-8027 pcc: wait for in-progress attaches when remove PCC
authorQian Yingjin <qian@ddn.com>
Mon, 14 Aug 2023 07:32:11 +0000 (03:32 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:19:04 +0000 (16:19 +0000)
commit68b86348c518aa341b57a839d747da753ee9131c
treed4056d8393142082b814427f7cbd0d17ed09ecbc
parent92303f0c3317d0886f2b76dd5c6c45224b1d1cd2
EX-8027 pcc: wait for in-progress attaches when remove PCC

When remove a PCC backend from a client, it should wait for all
in-progress attaches finished. Othwise, it results in the failure
of the PCC backend umount operation.

The reason is that the PCC copy is referenced in the kernel, not
used by any applications in user space and the tool "lsof" can not
check whether the target PCC backend is used or not.

Change-Id: I05b268e75841f9f17e77819ed20c85c78d7c6ad6
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51940
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng Lei <flei@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh [changed mode: 0644->0755]