[PATCH] device-mapper multipath: Flush workqueue when destroying

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The multipath destructor must flush its workqueue.
Otherwise items that reference the destroyed object could remain.

From: "goggin, edward" <[email protected]>
Signed-off-by: Lars Marowsky-Bree <[email protected]>
Signed-Off-By: Alasdair G Kergon <[email protected]>

--- diff/drivers/md/dm-mpath.c	2005-07-08 19:01:41.000000000 +0100
+++ source/drivers/md/dm-mpath.c	2005-07-08 19:11:11.000000000 +0100
@@ -752,6 +752,8 @@
 static void multipath_dtr(struct dm_target *ti)
 {
 	struct multipath *m = (struct multipath *) ti->private;
+
+	flush_workqueue(kmultipathd);
 	free_multipath(m);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux