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:34:45 +0000 (18:34 -0400)
commita24ad3343f51c5b0e52352571db94332c78e2b6e
tree3c1175d3c80c7e6ab7c25e839a5be1708b7e8812
parent89f28328a75c39b935f3bc969a3e3f092506f0d7
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