Whamcloud - gitweb
LU-639 obdclass: wait obd cleanup before mount
authorBobi Jam <bobijam@whamcloud.com>
Tue, 20 Dec 2011 09:59:07 +0000 (17:59 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 4 Jan 2012 18:45:44 +0000 (13:45 -0500)
commit11d258632de7255ae8282b0615a19bd5c9cf707a
tree04752138839c2012762088e660f3e20182d0906d
parente9bd648f53ecc95eca67fa0ddaddec03053ad7f5
LU-639 obdclass: wait obd cleanup before mount

Obd device cleanup is executed by obd zombie thread, and umount thread
can return successfully before obd zomebie finishes its job. In some
cases, especially in test cases, a test may starts before last tests
finishes obd cleanup, this patch makes mount thread wait for obd
zombie finishes its job.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I881be5de18960867c36e8c4e4180c0c594d88a01
Reviewed-on: http://review.whamcloud.com/1896
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/obd_mount.c