Commit 9157c8d3 authored by Bart Van Assche's avatar Bart Van Assche Committed by Mike Snitzer

dm mpath: complain about unsupported __multipath_map_bio() return values

WARN_ONCE() if __multipath_map_bio() returns an unsupported return value.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 7b06e09a
...@@ -632,6 +632,10 @@ static void process_queued_bios(struct work_struct *work) ...@@ -632,6 +632,10 @@ static void process_queued_bios(struct work_struct *work)
case DM_MAPIO_REMAPPED: case DM_MAPIO_REMAPPED:
generic_make_request(bio); generic_make_request(bio);
break; break;
case 0:
break;
default:
WARN_ONCE(true, "__multipath_map_bio() returned %d\n", r);
} }
} }
blk_finish_plug(&plug); blk_finish_plug(&plug);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment