Commit 685f285
committed
nvme-fabrics: handle zero MAXCMD without closing the connection
jira LE-3460
Rebuild_History Non-Buildable kernel-6.12.0-55.18.1.el10_0
commit-author Maurizio Lombardi <[email protected]>
commit 88c23a3
The NVMe specification states that MAXCMD is mandatory
for NVMe-over-Fabrics implementations. However, some NVMe/TCP
and NVMe/FC arrays from major vendors have buggy firmware
that reports MAXCMD as zero in the Identify Controller data structure.
Currently, the implementation closes the connection in such cases,
completely preventing the host from connecting to the target.
Fix the issue by printing a clear error message about the firmware bug
and allowing the connection to proceed. It assumes that the
target supports a MAXCMD value of SQSIZE + 1. If any issues arise,
the user can manually adjust SQSIZE to mitigate them.
Fixes: 4999568 ("nvme-fabrics: check max outstanding commands")
Signed-off-by: Maurizio Lombardi <[email protected]>
Reviewed-by: Laurence Oberman <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
(cherry picked from commit 88c23a3)
Signed-off-by: Jonathan Maple <[email protected]>1 parent 2fd56c7 commit 685f285
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3250 | 3250 | | |
3251 | 3251 | | |
3252 | 3252 | | |
3253 | | - | |
3254 | | - | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
3255 | 3256 | | |
3256 | 3257 | | |
3257 | 3258 | | |
| |||
0 commit comments