[PATCHv6 2/8] nvme-multipath: pass I/O type to nvme_find_path()

Hannes Reinecke hare at suse.de
Wed May 27 00:16:38 PDT 2026


On 5/20/26 20:20, Nilay Shroff wrote:
> Currently, nvme_find_path() only accepts an nvme_ns_head argument.
> However, the upcoming latency-aware I/O policy also needs to know
> the I/O type (read/write/other) associated with the request in order
> to make path selection decisions.
> 
> Update nvme_find_path() to accept an additional argument describing
> the I/O type. This patch does not introduce any functional change and
> only prepares the interface for subsequent latency-policy changes.
> 
> Signed-off-by: Nilay Shroff <nilay at linux.ibm.com>
> ---
>   drivers/nvme/host/ioctl.c     | 38 ++++++++++++++++++++++++++++++++---
>   drivers/nvme/host/multipath.c |  9 +++++----
>   drivers/nvme/host/nvme.h      | 19 +++++++++++++++++-
>   drivers/nvme/host/pr.c        |  6 ++++--
>   drivers/nvme/host/sysfs.c     |  2 +-
>   5 files changed, 63 insertions(+), 11 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list