diff options
-rw-r--r-- | drivers/md/dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 9b4e30a82e4a..beda011cb741 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1889,8 +1889,8 @@ static int map_request(struct dm_target *ti, struct request *rq, dm_kill_unmapped_request(rq, r); return r; } - if (IS_ERR(clone)) - return DM_MAPIO_REQUEUE; + if (r != DM_MAPIO_REMAPPED) + return r; if (setup_clone(clone, rq, tio, GFP_KERNEL)) { /* -ENOMEM */ ti->type->release_clone_rq(clone); |