dm mpath: wait for pg_init completion when suspending
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>
Sat, 6 Mar 2010 02:32:13 +0000 (02:32 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 6 Mar 2010 02:32:13 +0000 (02:32 +0000)
commit2bded7bd7e8b12a913b0b58167a48220560e1514
treef903c0f06b7b9a3e9fdcc347d00d44fa8290a1d0
parentd0259bf0eefc503d3c9c9ccda35033c3dd3aac30
dm mpath: wait for pg_init completion when suspending

When suspending the device we must wait for all I/O to complete, but
pg-init may be still in progress even after flushing the workqueue
for kmpath_handlerd in multipath_postsuspend.

This patch waits for pg-init completion correctly in
multipath_postsuspend().

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c