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

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]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Alasdair G Kergon 2005-07-12 15:53:02 -07:00 • committed by Linus Torvalds
commit a044d01689

View 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);
}