diff options
author | John Baldwin <jhb@FreeBSD.org> | 2024-10-17 16:09:27 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-10-17 16:09:27 +0000 |
commit | d1516ec33e6600f6aae3243119aeb14762dc9f97 (patch) | |
tree | 0844f30781e127905176a92fe16c82741ee57065 /sbin/gpt/(public-mirror) | |
parent | b08d332da035e11bfc9373f2d08244cb3e10cda4 (diff) | |
download | src-main.tar.gz src-main.zip |
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
Diffstat (limited to 'sbin/gpt/(public-mirror)')
0 files changed, 0 insertions, 0 deletions