mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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:
parent
f6a80ea8ed
commit
a044d01689
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue