]> err.no Git - linux-2.6/commitdiff
[PATCH] device-mapper multipath: Flush workqueue when destroying
authorAlasdair G Kergon <agk@redhat.com>
Tue, 12 Jul 2005 22:53:02 +0000 (15:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 23:19:10 +0000 (16:19 -0700)
The multipath destructor must flush its workqueue.  Otherwise items that
reference the destroyed object could remain.

From: "goggin, edward" <egoggin@emc.com>
Signed-off-by: Lars Marowsky-Bree <lmb@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-mpath.c

index 84cdb700a247040d4e72a7f79c03df12a7598ced..fa72f015320615d3318fba15e685c6718ba20ee5 100644 (file)
@@ -752,6 +752,8 @@ static int multipath_ctr(struct dm_target *ti, unsigned int argc,
 static void multipath_dtr(struct dm_target *ti)
 {
        struct multipath *m = (struct multipath *) ti->private;
+
+       flush_workqueue(kmultipathd);
        free_multipath(m);
 }