opnsense-src/sys/dev/nvmf/host
John Baldwin d1516ec33e nvmf: Fail pass through commands while a controller is not associated
Previously this just dereferenced NULL qp pointers and panicked.
Instead, use a shared lock on the connection lock to protect access to
the qp pointers and allocate a request.  If the controller is not
associated, fail the request with ECONNABORTED.

Possibly this should be honoring kern.nvmf.fail_on_disconnection and
block waiting for a reconnect request while disconnected if that
tunable is false.

Reported by:	Suhas Lokesha <suhas@chelsio.com>
Sponsored by:	Chelsio Communications
2024-10-17 12:09:27 -04:00
..
nvmf.c nvmf: Fail pass through commands while a controller is not associated 2024-10-17 12:09:27 -04:00
nvmf_aer.c nvmf: Rescan all namespaces if the changed NS log page is too large 2024-06-05 12:52:43 -07:00
nvmf_cmd.c
nvmf_ctldev.c
nvmf_ns.c nvmf: Handle shutdowns more gracefully 2024-06-05 12:59:28 -07:00
nvmf_qpair.c
nvmf_sim.c nvmf: Narrow scope of sim lock in nvmf_sim_io 2024-09-25 21:14:06 -04:00
nvmf_var.h nvmf: Handle shutdowns more gracefully 2024-06-05 12:59:28 -07:00