Whamcloud - gitweb
LU-395: obd_zombie_barrier is not barrier actually
authorJinshan Xiong <jay@whamcloud.com>
Thu, 16 Jun 2011 05:30:27 +0000 (22:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 16 Jun 2011 19:53:37 +0000 (12:53 -0700)
commitc453ccb0f82fcaa5f537620990c4cc90a769b210
tree3cab86416bd7c57cda143262ae1ea72a9a3ce86e
parent47818dfe877ec6f55baea7f0e1df581ea593c9b0
LU-395: obd_zombie_barrier is not barrier actually

a hotfix for avoiding deadlock:
sys_umount -> class_detach -> obd_zombie_impexp_cull -> filter_cleanup
-> obd_zombie_barrier, but the zombies_count will only be decreased after
obd_zombie_impexp_cull, so this process is waiting for itself, this is a
deadlock.

Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Change-Id: Id29deab4c85a7570ec59b2a20f70ccfae9440f01
Reviewed-on: http://review.whamcloud.com/945
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/obd_config.c