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

From: Alasdair G Kergon
Date: Fri Jul 08 2005 - 16:44:27 EST


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

From: "goggin, edward" <egoggin@xxxxxxx>
Signed-off-by: Lars Marowsky-Bree <lmb@xxxxxxx>
Signed-Off-By: Alasdair G Kergon <agk@xxxxxxxxxx>

--- 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/