]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
dm mpath: complain about unsupported __multipath_map_bio() return values
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 9 Aug 2017 18:32:14 +0000 (11:32 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 28 Aug 2017 13:58:29 +0000 (09:58 -0400)
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>
drivers/md/dm-mpath.c

index 97bca94643958bbd69260f643279d646d7956bbe..7406ededf875a242f4204846fab78f0f113d5fe1 100644 (file)
@@ -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);