All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Just inform and dont warn when DM_DEV_REMOVE is tried on a open device
@ 2010-04-20  7:16 Nikanth Karthikesan
  2010-04-20  8:00 ` Milan Broz
  0 siblings, 1 reply; 3+ messages in thread
From: Nikanth Karthikesan @ 2010-04-20  7:16 UTC (permalink / raw)
  To: Alasdair G Kergon, device-mapper development, Stefan Assmann

Dont warn when DM_DEV_REMOVE ioctl is tried on a open device.

On openSUSE when cryptsetup and udev interact, cryptsetup sometimes tries to
remove a dm device currently opened by blkid, which is not a serious issue to
print a kernel warning. The application should retry if -EBUSY is returned. So
let us make it an informational message instead.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>

---

diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index d7500e1..dcfa48a 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -729,7 +729,7 @@ static int dev_remove(struct dm_ioctl *param, size_t param_size)
 	 */
 	r = dm_lock_for_deletion(md);
 	if (r) {
-		DMWARN("unable to remove open device %s", hc->name);
+		DMINFO("unable to remove open device %s", hc->name);
 		up_write(&_hash_lock);
 		dm_put(md);
 		return r;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-20  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-20  7:16 [PATCH] Just inform and dont warn when DM_DEV_REMOVE is tried on a open device Nikanth Karthikesan
2010-04-20  8:00 ` Milan Broz
2010-04-20  8:43   ` Nikanth Karthikesan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.