Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177570413
D61554.1794767542.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
708 B
Referenced Files
None
Subscribers
None
D61554.1794767542.diff
View Options
diff --git a/tools/tools/nvmf/nvmfd/io.c b/tools/tools/nvmf/nvmfd/io.c
--- a/tools/tools/nvmf/nvmfd/io.c
+++ b/tools/tools/nvmf/nvmfd/io.c
@@ -619,11 +619,6 @@
goto error;
}
- if (kernel_io) {
- ctl_handoff_qpair(qp, nvmf_capsule_sqe(nc), &data);
- goto error;
- }
-
if (strcmp(data.subnqn, nqn) != 0) {
warn("I/O qpair with invalid SubNQN: %.*s",
(int)sizeof(data.subnqn), data.subnqn);
@@ -632,6 +627,12 @@
goto error;
}
+ if (kernel_io) {
+ ctl_handoff_qpair(qp, nvmf_capsule_sqe(nc), &data);
+ nvmf_connect_generic_error(nc, NVME_SC_INTERNAL_DEVICE_ERROR);
+ goto error;
+ }
+
/* Is this an admin or I/O queue pair? */
cmd = nvmf_capsule_sqe(nc);
if (cmd->qid == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 6:32 PM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41746162
Default Alt Text
D61554.1794767542.diff (708 B)
Attached To
Mode
D61554: nvmfd: Always return a CQE with a suitable error if kernel handoff fails
Attached
Detach File
Event Timeline