The only behavior change introduced by this patch is that WARN_ON_ONCE() is called if __multipath_map_bio() would return an unsupported return value.
Signed-off-by: Bart Van Assche <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Laurence Oberman <[email protected]> --- drivers/md/dm-mpath.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 6e20deac4add..f2ffa20c69b9 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -632,6 +632,11 @@ 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); -- 2.13.3 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
