Skip to contentSkip to conversation

dm-mpath: use DM_MAPIO_SUBMITTED instead of 0 in process_queued_bios

PATCH New Wang Sheng-Hui 1 participant 1 message Mar 10, 2018 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm-mpath: use DM_MAPIO_SUBMITTED instead of 0 in process_queued_bios

Use the macro DM_MAPIO_SUBMITTED instead of magic number 0 in dm-mpath.c/process_queued_bios.

---
 drivers/md/dm-mpath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-mpath.c +1 -1
index 7d3e572072f5..fae0b3b810d3 100644
@@ -721,7 +721,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);
Signature · 1 line
2.11.0