[dm-devel] [PATCH] dm: don't send KOBJ_REMOVE event
Mikulas Patocka
mpatocka at redhat.com
Wed Nov 5 13:01:11 UTC 2014
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 at redhat.com>
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 at redhat.com>
---
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;
More information about the dm-devel
mailing list