All of lore.kernel.org
 help / color / mirror / Atom feed
* master - dmeventd: Reduce waitevent EINTR message severity.
@ 2015-01-21 12:54 Alasdair Kergon
  0 siblings, 0 replies; only message in thread
From: Alasdair Kergon @ 2015-01-21 12:54 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=25d906dbde45bc64c5a0978e40c810b3b070cb0d
Commit:        25d906dbde45bc64c5a0978e40c810b3b070cb0d
Parent:        7cfc9a4f640296679f2b860842cc8b25b82fd30f
Author:        Alasdair G Kergon <agk@redhat.com>
AuthorDate:    Wed Jan 21 12:54:00 2015 +0000
Committer:     Alasdair G Kergon <agk@redhat.com>
CommitterDate: Wed Jan 21 12:54:00 2015 +0000

dmeventd: Reduce waitevent EINTR message severity.

---
 WHATS_NEW_DM              |    1 +
 libdm/ioctl/libdm-iface.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 0a59875..8cbb6b6 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
 Version 1.02.93 -
 ====================================
+  Reduce severity of ioctl error message when dmeventd waitevent is interrupted.
   Report 'unknown version' when incompatible version numbers were not obtained.
   Report more info from thin pool status (out of data, metadata-ro, fail).
   Support error_if_no_space for thin pool target.
diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c
index f8b4ed9..f971519 100644
--- a/libdm/ioctl/libdm-iface.c
+++ b/libdm/ioctl/libdm-iface.c
@@ -1801,7 +1801,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
 				       (dmt->type == DM_DEVICE_STATUS)))
 			dmi->flags &= ~DM_EXISTS_FLAG;	/* FIXME */
 		else {
-			if (_log_suppress)
+			if (_log_suppress || errno == EINTR)
 				log_verbose("device-mapper: %s ioctl "
 					    "failed: %s",
 				    	    _cmd_data_v4[dmt->type].name,



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-21 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-21 12:54 master - dmeventd: Reduce waitevent EINTR message severity Alasdair Kergon

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.