All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Avoid that reloading a map sporadically triggers I/O errors
@ 2016-11-18 21:33 Bart Van Assche
  2016-11-18 21:43 ` Mike Snitzer
  2016-12-07 23:37 ` [PATCH] " Bart Van Assche
  0 siblings, 2 replies; 7+ messages in thread
From: Bart Van Assche @ 2016-11-18 21:33 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: device-mapper development

Avoid that reloading a map while there are no paths triggers a flush
and hence unwanted I/O errors if 'queue_if_no_path' is enabled.

Fixes: commit d569988e7528 ("libmultipath: Fixup 'DM_DEVICE_RELOAD' handling")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Hannes Reinecke <hare@suse.de>
---
 libmultipath/devmapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
index f92ebce..31f1962 100644
--- a/libmultipath/devmapper.c
+++ b/libmultipath/devmapper.c
@@ -390,7 +390,7 @@ int dm_addmap_reload(struct multipath *mpp, char *params, int flush)
 			      params, ADDMAP_RO, SKIP_KPARTX_OFF);
 	}
 	if (r)
-		r = dm_simplecmd(DM_DEVICE_RESUME, mpp->alias, flush,
+		r = dm_simplecmd(DM_DEVICE_RESUME, mpp->alias, !flush,
 				 1, udev_flags, 0);
 	return r;
 }
-- 
2.10.1

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

end of thread, other threads:[~2017-02-27 21:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18 21:33 [PATCH] Avoid that reloading a map sporadically triggers I/O errors Bart Van Assche
2016-11-18 21:43 ` Mike Snitzer
2016-11-18 21:51   ` Bart Van Assche
2016-12-07 23:37 ` [PATCH] " Bart Van Assche
2017-01-04 19:56   ` Benjamin Marzinski
2017-02-27 15:18     ` Bart Van Assche
2017-02-27 21:06       ` Christophe Varoqui

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.