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/