Commit df84a4f
committed
nvme: fix atomic write size validation
JIRA: https://issues.redhat.com/browse/RHEL-114502
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: 8695f06 ("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>
(cherry picked from commit f46d273)
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>1 parent 8348552 commit df84a4f
2 files changed
+12
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2056 | 2056 | | |
2057 | 2057 | | |
2058 | 2058 | | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | | - | |
2068 | | - | |
2069 | | - | |
| 2059 | + | |
2070 | 2060 | | |
2071 | 2061 | | |
2072 | 2062 | | |
| |||
2401 | 2391 | | |
2402 | 2392 | | |
2403 | 2393 | | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
2407 | | - | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
2413 | | - | |
2414 | 2394 | | |
2415 | 2395 | | |
2416 | 2396 | | |
| |||
3234 | 3214 | | |
3235 | 3215 | | |
3236 | 3216 | | |
| 3217 | + | |
3237 | 3218 | | |
3238 | 3219 | | |
3239 | 3220 | | |
| |||
3571 | 3552 | | |
3572 | 3553 | | |
3573 | 3554 | | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
3574 | 3564 | | |
3575 | 3565 | | |
3576 | 3566 | | |
| |||
3666 | 3656 | | |
3667 | 3657 | | |
3668 | 3658 | | |
3669 | | - | |
3670 | 3659 | | |
3671 | 3660 | | |
3672 | 3661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
| |||
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | 451 | | |
453 | 452 | | |
454 | 453 | | |
| |||
0 commit comments