Whamcloud - gitweb
LU-13930 pcc: auto PCC-RO attach in atomic_open 36/39736/3
authorQian Yingjin <qian@ddn.com>
Thu, 27 Aug 2020 03:16:38 +0000 (11:16 +0800)
committerQian Yingjin <qian@ddn.com>
Fri, 4 Sep 2020 08:06:36 +0000 (16:06 +0800)
commit6805611f23c0a0c903a44ad4f0fc0c74e91164a4
tree63934094cffef2dd56100ad53d312a343bbc6d16
parentf12ff9ccf6f9f4f0078c5ca73e489e46fc821ebf
LU-13930 pcc: auto PCC-RO attach in atomic_open

Auto PCC-RO attach during PCC open will try to change the layout
into read-only state on MDT. If the intent open in atomic_open
returns a lock with MDS_INODELOCK_LAYOUT bit set, it may cause
dead lock on lock blocking callback caused by the layout change
into read-only state on MDT. Thus it would better to release the
open intent lock frist before call PCC open.

Test-Parameters: clientcount=3 testlist=sanity-pcc,sanity-pcc,sanity-pcc
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I7ab86bd56da9bacc40b201162ffd022ab5a2352c
lustre/llite/file.c
lustre/llite/namei.c
lustre/tests/sanity-pcc.sh