diff options
author | John Baldwin <jhb@FreeBSD.org> | 2024-09-26 01:14:06 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-09-26 01:14:06 +0000 |
commit | ef052adf09f25a20e694c3375cc7a0edd4cb0a52 (patch) | |
tree | b5c5d7223c5b75ab2b901a87756b249558dc93f9 /sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/(developers-only) | |
parent | aec2ae8b57fc638fa3ba9fac9d2067f2049ab613 (diff) | |
download | src-main.tar.gz src-main.zip |
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
Diffstat (limited to 'sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/(developers-only)')
0 files changed, 0 insertions, 0 deletions