Whamcloud - gitweb
LU-13262 ldlm: no current source if lu_ref_del not in same tsk 24/37624/3
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 19 Feb 2020 13:48:48 +0000 (14:48 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 May 2020 05:04:29 +0000 (05:04 +0000)
commit419325a2c9a29e9b372d071992cef5ea9def8cc0
tree99818d2a08f858afd5be4e3847e9f0afa079c7da
parent3f7853b31ef6f5a6c2837403910083057728a842
LU-13262 ldlm: no current source if lu_ref_del not in same tsk

Running with USE_LU_REF ("configure --enable-lu_ref") configured
triggers a LBUG (because "ref->lf_failed > 0" condition false)
due to to using "current" as the lu_ref source, but in some cases
lu_ref_del() occurs within a different task context.
To avoid this, lu_ref source is changed to ldlm_lock address by
this patch.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ia35e31c1a722c03f97672025e2abff40486b3f76
Reviewed-on: https://review.whamcloud.com/37624
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lock.c