summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-target.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-26 09:40:39 +0200
committerMike Snitzer <snitzer@redhat.com>2017-05-02 00:19:03 +0200
commit412445acb6cad4cef026daae37c4765fb9942c60 (patch)
tree52b970ffec3a57e313473e67205729a696c743ec /drivers/md/dm-target.c
parentdm rq: change ->rq_end_io calling conventions (diff)
downloadlinux-412445acb6cad4cef026daae37c4765fb9942c60.tar.xz
linux-412445acb6cad4cef026daae37c4765fb9942c60.zip
dm: introduce a new DM_MAPIO_KILL return value
This untangles the DM_MAPIO_* values returned from ->clone_and_map_rq from the error codes used by the block layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-target.c')
-rw-r--r--drivers/md/dm-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c
index 43d3445b121d..6264ff00dcf0 100644
--- a/drivers/md/dm-target.c
+++ b/drivers/md/dm-target.c
@@ -135,7 +135,7 @@ static int io_err_clone_and_map_rq(struct dm_target *ti, struct request *rq,
union map_info *map_context,
struct request **clone)
{
- return -EIO;
+ return DM_MAPIO_KILL;
}
static void io_err_release_clone_rq(struct request *clone)