Whamcloud - gitweb
LU-15456 llite: deadlock in ll_new_node() 57/46157/1
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 18 Jan 2022 04:29:19 +0000 (23:29 -0500)
committerLai Siyao <lai.siyao@whamcloud.com>
Tue, 18 Jan 2022 04:29:19 +0000 (23:29 -0500)
commitd46e8deb9c0e680e195ef4d2c8755f25ad27865f
tree508e31d62ef94a0a7eb1fd7a70ee831bacf839f2
parent46ff76137160b66f1d4437b3443859027faae9c4
LU-15456 llite: deadlock in ll_new_node()

ll_new_node() will call ll_dir_getstripe() to fetch parent default
LMV if md_create() returns -EREMOTE, it should call
ll_finish_md_op_data() before calling ll_dir_getstripe() because
the latter will lock lli_lsm_sem again, which will deadlock.

Fixes: 55ca00c3d1cd863 ("LU-11213 ptlrpc: intent_getattr fetches default LMV")
Test-Parameters: mdscount=2 mdtcount=4 testlist=racer,racer,racer
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ib858bae19ff88533fe487583c27d544026aafa3f
lustre/llite/namei.c