Whamcloud - gitweb
LU-14999 mdt: Deadlock on parent during resend 85/44885/9
authorAndriy Skulysh <c17819@cray.com>
Sun, 6 Sep 2020 09:21:14 +0000 (12:21 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Nov 2021 02:38:13 +0000 (02:38 +0000)
commita3b3d91b740466feea54d0fe9a397ba79c001aa7
tree7ab09f905e928efec71e2e1a29df046946f7c7c3
parent15998eb78e279f1bfa5059f0f65087f7851d40ff
LU-14999 mdt: Deadlock on parent during resend

Parent-child lock order gets broken during resend as
there is child lock already but there isn't parent lock
and MDS tries to lock it again.

Don't lookup child on resend, extract fid from the lock instead.

Change-Id: I443648a8162e770c63fd087dd534c27e7c637c40
HPE-bug-id: LUS-9306
Signed-off-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Alexander Boyko <c17825@cray.com>
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Reviewed-on: https://review.whamcloud.com/44885
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c