Skip to content
Commit f46d2734 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

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: 8695f060 ("nvme: all namespaces in a subsystem must adhere to a common atomic write size")
Reported-by: default avatarYi Zhang <yi.zhang@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Tested-by: default avatarYi Zhang <yi.zhang@redhat.com>
parent b2e607fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment