Whamcloud - gitweb
LU-1592 ldlm: protect obd_export:exp_imp_reverse's change
authorBobi Jam <bobijam@whamcloud.com>
Thu, 16 Aug 2012 07:52:09 +0000 (15:52 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Nov 2012 19:23:29 +0000 (14:23 -0500)
commit13ec7be96af4e8ff6f5187ee333e5156346eb8b1
treecfdc08c4d4ab18123dcc70787224c9cd28cd960b
parentf144acc2d72740ebda8f77ce7c37c457ead1ef66
LU-1592 ldlm: protect obd_export:exp_imp_reverse's change

* Protect obd_export::exp_imp_reverse from reconnect and destroy race.
* Add an assertion in class_import_put() to catch race in the first
  place.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: If0abf6717456931c567d8d41c1d20fe49452e959
Reviewed-on: http://review.whamcloud.com/3869
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_export.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c