diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-15 17:28:36 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-05-15 15:09:51 -0400 |
commit | ece0728037b15f4d31198f12b359104bcb5db4c8 (patch) | |
tree | 04a5686cbcc5dfbf50184a745147251dd405166f /drivers/md/dm-rq.c | |
parent | 0377a07c7a035e0d033cd8b29f0cb15244c0916a (diff) | |
download | linux-ece0728037b15f4d31198f12b359104bcb5db4c8.tar.gz linux-ece0728037b15f4d31198f12b359104bcb5db4c8.tar.bz2 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>
Diffstat (limited to 'drivers/md/dm-rq.c')
-rw-r--r-- | drivers/md/dm-rq.c | 1 |
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(); |