[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" <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>
This commit is contained in:
Alasdair G Kergon 2005-07-12 15:53:02 -07:00 коммит произвёл Linus Torvalds
Родитель f6a80ea8ed
Коммит a044d01689
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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