]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351352: Improve NVMe hot unplug handling.
authorAlexander Motin <mav@FreeBSD.org>
Tue, 27 Aug 2019 04:04:19 +0000 (04:04 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 27 Aug 2019 04:04:19 +0000 (04:04 +0000)
commit81fa3f59808c5f3428066969d88a9eb969b57f37
tree0150e7f10ece0652d0ac42e2ce60e1be75b89a1d
parentac886c90cda1a8169ace93c3041a047c0ad4e3cb
MFC r351352: Improve NVMe hot unplug handling.

If device is unplugged from the system (CSTS register reads return
0xffffffff), it makes no sense to send any more recovery requests or
expect any responses back.  If there is a detach call in such state,
just stop all activity and free resources.  If there is no detach
call (hot-plug is not supported), rely on normal timeout handling,
but when it trigger controller reset, do not wait for impossible and
quickly report failure.

Sponsored by: iXsystems, Inc.
sys/dev/nvme/nvme_ctrlr.c
sys/dev/nvme/nvme_qpair.c