summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-15 17:28:36 +0200
committerMike Snitzer <snitzer@redhat.com>2017-05-15 15:09:51 -0400
commitece0728037b15f4d31198f12b359104bcb5db4c8 (patch)
tree04a5686cbcc5dfbf50184a745147251dd405166f
parent0377a07c7a035e0d033cd8b29f0cb15244c0916a (diff)
downloadblackbird-obmc-linux-ece0728037b15f4d31198f12b359104bcb5db4c8.tar.gz
blackbird-obmc-linux-ece0728037b15f4d31198f12b359104bcb5db4c8.zip
dm rq: add a missing break to map_request
We don't want to bug when receiving a DM_MAPIO_KILL value.. Fixes: 412445ac ("dm: introduce a new DM_MAPIO_KILL return value") Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r--drivers/md/dm-rq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
index 2af27026aa2e..b639fa7246ee 100644
--- a/drivers/md/dm-rq.c
+++ b/drivers/md/dm-rq.c
@@ -507,6 +507,7 @@ static int map_request(struct dm_rq_target_io *tio)
case DM_MAPIO_KILL:
/* The target wants to complete the I/O */
dm_kill_unmapped_request(rq, -EIO);
+ break;
default:
DMWARN("unimplemented target map return value: %d", r);
BUG();
OpenPOWER on IntegriCloud