diff mbox

[2/2] dm flakey: document that default I/O error is only for write

Message ID 1447870388-14437-2-git-send-email-kusumi.tomohiro@gmail.com (mailing list archive)
State Superseded, archived
Delegated to: Mike Snitzer
Headers show

Commit Message

Tomohiro Kusumi Nov. 18, 2015, 6:13 p.m. UTC
.map of dm-flakey with no optional feature parameters specified
results in -EIO only for writes during down time. Read bios are
submitted as usual whether it's in up or down time.

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
---
 Documentation/device-mapper/dm-flakey.txt |    2 +-
 drivers/md/dm-flakey.c                    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/Documentation/device-mapper/dm-flakey.txt b/Documentation/device-mapper/dm-flakey.txt
index 6ff5c23..c171706 100644
--- a/Documentation/device-mapper/dm-flakey.txt
+++ b/Documentation/device-mapper/dm-flakey.txt
@@ -27,7 +27,7 @@  Mandatory parameters:
 
 Optional feature parameters:
   If no feature parameters are present, during the periods of
-  unreliability, all I/O returns errors.
+  unreliability, all write I/O returns errors.
 
   drop_writes:
 	All write I/O is silently ignored.
diff --git a/drivers/md/dm-flakey.c b/drivers/md/dm-flakey.c
index 09e2afc..8da73ac 100644
--- a/drivers/md/dm-flakey.c
+++ b/drivers/md/dm-flakey.c
@@ -312,7 +312,7 @@  static int flakey_map(struct dm_target *ti, struct bio *bio)
 		}
 
 		/*
-		 * By default, error all I/O.
+		 * By default, error all write I/O.
 		 */
 		return -EIO;
 	}