Whamcloud - gitweb
LU-395 Fix obd_zombie_barrier()
authorMikhail Pershin <tappro@whamcloud.com>
Mon, 6 Jun 2011 19:12:25 +0000 (23:12 +0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Jun 2011 00:05:50 +0000 (17:05 -0700)
commitc4e3a69dd9a335d54f747d2e969edefe7bcce4cd
tree411d46478ed4468cdef2740054980ed25b6fb201
parenta6298212ec2354f815bf06c1b34fc4b27bd35a00
LU-395 Fix obd_zombie_barrier()

The obd_zombie_barrier() is waiting for obd_zombie_export list is empty
and exit, but export may be not yet destroyed. This produces race between export
destroying and other cleanups like lut_fini()

The patch introduces zombies_in_destroy variable which is counter, and
obd_zombie_barrier is checking it.

Change-Id: I0fd4a1023efade1cb40d4c36e59169a25a525ed1
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/899
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/genops.c