Commit f54f0d0
committed
nvme: enhance cns version checking
The number of CNS bits in the command is specific to the nvme spec
version compliance. The existing check is not sufficient for possible
CNS values the driver uses that may create confusion between host and
device, so enhance the check to consider the version and desired CNS
value.
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>1 parent 49c234b commit f54f0d0
1 file changed
+25
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
| 1393 | + | |
1400 | 1394 | | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1404 | 1417 | | |
1405 | 1418 | | |
1406 | 1419 | | |
| |||
3104 | 3117 | | |
3105 | 3118 | | |
3106 | 3119 | | |
3107 | | - | |
| 3120 | + | |
3108 | 3121 | | |
3109 | 3122 | | |
3110 | 3123 | | |
| |||
4200 | 4213 | | |
4201 | 4214 | | |
4202 | 4215 | | |
4203 | | - | |
| 4216 | + | |
4204 | 4217 | | |
4205 | 4218 | | |
4206 | 4219 | | |
| |||
0 commit comments