[PATCH] nvme-multipath: set nr_zones for zoned namespaces

Minwoo Im minwoo.im.dev at gmail.com
Mon Feb 8 09:57:47 EST 2021


> Hmmm... I see the zone model being set for ns->queue, but nothing for
> ns->head->disk->queue... Shoudln't nvme_mpath_add_disk() also set the zoned
> model for ns->head->disk->queue ?

I think zone model shows properly with the simple multi-path example:

	cat /sys/block/nvme0n1/queue/zoned:		host-managed
	cat /sys/block/nvme0c0n1/queue/zoned:		host-managed
	cat /sys/block/nvme0n1/queue/nr_zones:		0
	cat /sys/block/nvme0c0n1/queue/nr_zones:	2048

But, there are also little more differences between the path namespace
and head namespace:

	cat /sys/block/nvme0n1/queue/nr_requests:	128
	cat /sys/block/nvme0c0n1/queue/nr_requests:	1023
	cat /sys/block/nvme0n1/queue/iostats:		0
	cat /sys/block/nvme0c0n1/queue/iostats:		1
	cat /sys/block/nvme0n1/queue/rq_affinity:	0
	cat /sys/block/nvme0c0n1/queue/rq_affinity:	1

+ Question with Damien's one:  Shouldn't we sync all the differences
between the two request_queues?



More information about the Linux-nvme mailing list