Whamcloud - gitweb
EX-3764 pcc: avoid panic in asynchronous attach thread
authorQian Yingjin <qian@ddn.com>
Thu, 9 Sep 2021 06:47:47 +0000 (14:47 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 15 Sep 2021 20:46:34 +0000 (20:46 +0000)
commit6c693d126197bc818b9e642c6b8db3d244265ec4
tree3b7a5ee271af6d7c9f93c3cb08cfc23c23c3fd91
parenta417317edcf4a865c49970d0c6dce8b4999fe2c4
EX-3764 pcc: avoid panic in asynchronous attach thread

When PCC attach a file asynchronously, it wrongly uses
@pccx->pccx_file after put the file in @pcc_attach_context_free().
This may casue panic in pcc_readonly_attach_thread().
This patch fixes it by using @pccx->pccx_file before put it.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Iaa93403e4db7497923033d327e689627790fa6a0
Reviewed-on: https://review.whamcloud.com/44881
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/pcc.c
lustre/tests/sanity-pcc.sh