Commit f46d273
Christoph Hellwig
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: 8695f06 ("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]>1 parent b2e607f commit f46d273
2 files changed
+12
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | | - | |
2054 | | - | |
| 2044 | + | |
2055 | 2045 | | |
2056 | 2046 | | |
2057 | 2047 | | |
| |||
2386 | 2376 | | |
2387 | 2377 | | |
2388 | 2378 | | |
2389 | | - | |
2390 | | - | |
2391 | | - | |
2392 | | - | |
2393 | | - | |
2394 | | - | |
2395 | | - | |
2396 | | - | |
2397 | | - | |
2398 | | - | |
2399 | 2379 | | |
2400 | 2380 | | |
2401 | 2381 | | |
| |||
3219 | 3199 | | |
3220 | 3200 | | |
3221 | 3201 | | |
| 3202 | + | |
3222 | 3203 | | |
3223 | 3204 | | |
3224 | 3205 | | |
| |||
3556 | 3537 | | |
3557 | 3538 | | |
3558 | 3539 | | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
3559 | 3549 | | |
3560 | 3550 | | |
3561 | 3551 | | |
| |||
3651 | 3641 | | |
3652 | 3642 | | |
3653 | 3643 | | |
3654 | | - | |
3655 | 3644 | | |
3656 | 3645 | | |
3657 | 3646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
| |||
443 | 442 | | |
444 | 443 | | |
445 | 444 | | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | 450 | | |
452 | 451 | | |
453 | 452 | | |
| |||
0 commit comments