dm mpath: use DM_MAPIO_SUBMITTED instead of magic number 0 in process_queued_bios()
authorWang Sheng-Hui <shhuiw@foxmail.com>
Sat, 10 Mar 2018 02:18:55 +0000 (10:18 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:19 +0000 (15:04 -0400)
Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c

index 1e60ec4..746dd8a 100644 (file)
@@ -714,7 +714,7 @@ static void process_queued_bios(struct work_struct *work)
                case DM_MAPIO_REMAPPED:
                        generic_make_request(bio);
                        break;
-               case 0:
+               case DM_MAPIO_SUBMITTED:
                        break;
                default:
                        WARN_ONCE(true, "__multipath_map_bio() returned %d\n", r);