[PATCH 10/24] scsi-multipath: add scsi_mpath_{start,end}_request()

John Garry john.g.garry at oracle.com
Mon Mar 2 04:20:44 PST 2026


On 02/03/2026 04:08, Benjamin Marzinski wrote:
>> +static inline void scsi_mpath_start_request(struct request *req)
>> +{
>> +	struct scsi_cmnd *cmd = blk_mq_rq_to_pdu(req);
>> +
>> +	if (is_mpath_request(req))
>> +		scsi_cmd_to_driver(cmd)->mpath_start_cmd(cmd);
>> +}
>> +
>> +static inline void scsi_mpath_end_request(struct request *req)
>> +{
>> +	struct scsi_cmnd *cmd = blk_mq_rq_to_pdu(req);
>> +
>> +	if (is_mpath_request(req))
>> +		scsi_cmd_to_driver(cmd)->mpath_start_cmd(cmd);
> Copy-paste error. It should be:
> 
> 		scsi_cmd_to_driver(cmd)->mpath_end_cmd(cmd);


Of course, obviously my testing needs more coverage.

Thanks!



More information about the Linux-nvme mailing list