diff options
| author | Christoph Hellwig <[email protected]> | 2025-06-11 04:54:56 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2025-06-26 11:04:37 +0000 |
| commit | f46d273449ba65afd53f3dd8fe0182c9df877e08 (patch) | |
| tree | d5b536087c50808dac01a8e9946938d64fad2cf3 /lib/crypto/mpi/mpicoder.c | |
| parent | nvme: refactor the atomic write unit detection (diff) | |
| download | kernel-f46d273449ba65afd53f3dd8fe0182c9df877e08.tar.gz kernel-f46d273449ba65afd53f3dd8fe0182c9df877e08.zip | |
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: 8695f060a029 ("nvme: all namespaces in a subsystem must adhere to a common atomic write size")
Reported-by: Yi Zhang <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Reviewed-by: John Garry <[email protected]>
Tested-by: Yi Zhang <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
