Re: [PATCH 09/24] scsi-multipath: failover handling
From: John Garry
Date: Wed Mar 04 2026 - 06:13:11 EST
On 04/03/2026 05:46, Benjamin Marzinski wrote:
+nitpick: this else block is unnecessary.
+int scsi_mpath_failover_disposition(struct scsi_cmnd *scmd)
+{
+ struct request *req = scsi_cmd_to_rq(scmd);
+
+ if (is_mpath_request(req)) {
+ if (scsi_is_mpath_error(scmd) ||
+ blk_queue_dying(req->q))
+ return FAILOVER;
+ return NEEDS_RETRY;
+ } else {
Sure, but I will prob be changing this code anyway.
Cheers