diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-09 20:32:14 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-08-28 15:58:29 +0200 |
commit | 9157c8d3e2d318581ecc8bdf34367d57f19c5380 (patch) | |
tree | 87916dae804ca624da83edb44e7352d391487d7c /drivers/md/dm-mpath.c | |
parent | dm mpath: avoid that building with W=1 causes gcc 7 to complain about fall-th... (diff) | |
download | linux-9157c8d3e2d318581ecc8bdf34367d57f19c5380.tar.xz linux-9157c8d3e2d318581ecc8bdf34367d57f19c5380.zip |
dm mpath: complain about unsupported __multipath_map_bio() return values
WARN_ONCE() if __multipath_map_bio() returns an unsupported return value.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 97bca9464395..7406ededf875 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -632,6 +632,10 @@ static void process_queued_bios(struct work_struct *work) case DM_MAPIO_REMAPPED: generic_make_request(bio); break; + case 0: + break; + default: + WARN_ONCE(true, "__multipath_map_bio() returned %d\n", r); } } blk_finish_plug(&plug); |