opnsense-src/sys/dev/nvmf/host
John Baldwin 6751f65e6a nvmf: Defer the post-sync shutdown handler to SHUTDOWN_PRI_LAST
nda(4) has its own shutdown handler that runs at SHUTDOWN_PRI_DEFAULT
that calls ndaflush() that could run after the nvmf handler.  Instead,
give a the flush a chance to run before the graceful shutdown of the
controller.

While here, be a bit more defensive in the post-sync case and shutdown
the consumers (sim and /dev/nvmeXnY devices) before destroying the
queue pairs so that if any requests are submitted after the post-sync
handler they fail gracefully instead of trying to use a destroyed
queue pair.

Reported by:	Sony Arpita Das <sonyarpitad@chelsio.com>
Sponsored by:	Chelsio Communications
2025-01-13 15:04:29 -05:00
..
nvmf.c nvmf: Defer the post-sync shutdown handler to SHUTDOWN_PRI_LAST 2025-01-13 15:04:29 -05: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: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
nvmf_ns.c nvmf: Handle shutdowns more gracefully 2024-06-05 12:59:28 -07:00
nvmf_qpair.c nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
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: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00