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>
Fri, 31 Aug 2012 22:31:41 +0000 (18:31 -0400)
commit0e2f0916f338c93c0944e7ff1d6240caa3e85cfc
tree0151675598f940eda40f315cf77260be1bf7a1c5
parent79badd39c6584ae136b14d919eaf699ee812b666
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/3684
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_export.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c