diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-04-27 20:11:26 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-04-28 00:08:47 +0300 |
commit | 86331f39a5935b092d3ea59446d416563ed05d16 (patch) | |
tree | 15eaf3fedb3bfd6252b7125e8d5c29daa71163b8 /drivers/md/dm.c | |
parent | 9a8ac3ae682e8760afebab71556a9a8d1b18f906 (diff) | |
download | linux-86331f39a5935b092d3ea59446d416563ed05d16.tar.xz |
dm mpath: make it easier to detect unintended I/O request flushes
I/O errors triggered by multipathd incorrectly not enabling the no-flush
flag for DM_DEVICE_SUSPEND or DM_DEVICE_RESUME are hard to debug. Add
more logging to make it easier to debug this.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 45660246e8f5..dbfaf6dde657 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2169,6 +2169,8 @@ static int __dm_suspend(struct mapped_device *md, struct dm_table *map, */ if (noflush) set_bit(DMF_NOFLUSH_SUSPENDING, &md->flags); + else + pr_debug("%s: suspending with flush\n", dm_device_name(md)); /* * This gets reverted if there's an error later and the targets |