Whamcloud - gitweb
LU-7619 obdclass: protect REFASSERT() with lu_ref::lf_guard 56/17756/2
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 30 Dec 2015 16:39:48 +0000 (17:39 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Jul 2016 23:54:11 +0000 (23:54 +0000)
commit838514369ac245d2dcfdcda7715a2798fe9ee755
treec8670ba3cc73782079052bcaa16e462317418c5e
parentac5a9c8515829c8ed92567256a0a84b00d70040d
LU-7619 obdclass: protect REFASSERT() with lu_ref::lf_guard

Some REFASSERT()s have been added by previous changes, but not
under required lu_ref::lf_guard spin-lock protection.
This can cause unexpected "self" dead-lock situations (vs
LBUG/ASSERT!!) upon lu_ref failure detection.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: If23d43f6fca196a33602b6bb8f051c0a4e26a300
Reviewed-on: http://review.whamcloud.com/17756
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
lustre/obdclass/lu_ref.c