HomeFreeBSD

nvmf: Fail pass through commands while a controller is not associated

Description

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

Details

Provenance
jhbAuthored on Oct 17 2024, 4:09 PM
Parents
rGb08d332da035: devices: report iommu data for the device in the dev. sysctl tree
Branches
Unknown
Tags
Unknown