opnsense-src/sys/dev/nvmf/host
John Baldwin ef052adf09 nvmf: Narrow scope of sim lock in nvmf_sim_io
nvmf_submit_request() handles races with concurrent queue pair
destruction (or the queue pair being destroyed between
nvmf_allocate_request and nvmf_submit_request), so the lock is not
needed here.  This avoids holding the lock across transport-specific
logic such as queueing mbufs for PDUs to a socket buffer, etc.

Holding the lock across nvmf_allocate_request() ensures that the queue
pair pointers in the softc are still valid as shutdown attempts will
block on the lock before destroying the queue pairs.

Sponsored by:	Chelsio Communications
2024-09-25 21:14:06 -04:00
..
nvmf.c nvmf: Use device_set_descf() 2024-06-16 16:37:26 -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