[PATCH] dm: don't send KOBJ_REMOVE event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Here I'm sending a patch for bug 1022876. It is not critical, it can wait 
for 3.19.

Mikulas


From: Mikulas Patocka <mpatocka@xxxxxxxxxx>

The kernel already sends KOBJ_REMOVE when removing a block device. If we
send it from the device mapper, there will be two KOBJ_REMOVE events.

Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>

---
 drivers/md/dm-ioctl.c |    3 ---
 1 file changed, 3 deletions(-)

Index: linux-3.18-rc3/drivers/md/dm-ioctl.c
===================================================================
--- linux-3.18-rc3.orig/drivers/md/dm-ioctl.c	2014-11-04 16:45:49.000000000 +0100
+++ linux-3.18-rc3/drivers/md/dm-ioctl.c	2014-11-04 16:51:27.000000000 +0100
@@ -864,9 +864,6 @@ static int dev_remove(struct dm_ioctl *p
 
 	param->flags &= ~DM_DEFERRED_REMOVE;
 
-	if (!dm_kobject_uevent(md, KOBJ_REMOVE, param->event_nr))
-		param->flags |= DM_UEVENT_GENERATED_FLAG;
-
 	dm_put(md);
 	dm_destroy(md);
 	return 0;

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux