Files
linux/drivers/nvme/host
Christoph Hellwig f46d273449 nvme: fix atomic write size validation
Don't mix the namespace and controller values, and validate the
per-controller limit when probing the controller.  This avoid spurious
failures for controllers with namespaces that have different namespaces
with different logical block sizes, or report the per-namespace values
only for some namespaces.

It also fixes a missing queue_limits_cancel_update in an error path by
removing that error path.

Fixes: 8695f060a0 ("nvme: all namespaces in a subsystem must adhere to a common atomic write size")
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
2025-06-26 13:04:37 +02:00
..
2025-06-26 13:04:37 +02:00
2025-06-04 10:23:28 +02:00
2025-06-04 10:23:28 +02:00
2025-06-04 10:23:28 +02:00
2025-06-04 10:23:28 +02:00
2025-06-26 13:04:37 +02:00
2025-06-04 10:23:28 +02:00
2025-06-04 09:51:10 +02:00
2025-06-04 10:23:28 +02:00
2023-04-13 08:59:04 +02:00