nvme: Restore hotplug warning

Restore hotplug warning in recovery state machine. No functional change
other than what message gets printed.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-10-12 14:25:16 -06:00
parent df7d763849
commit 18dc12bfd2

View File

@ -1010,7 +1010,8 @@ nvme_qpair_timeout(void *arg)
* controller.
*/
nvme_printf(ctrlr, "Resetting controller due to a timeout%s.\n",
cfs ? " and fatal error status" : "");
(csts == 0xffffffff) ? " and possible hot unplug" :
(cfs ? " and fatal error status" : ""));
nvme_printf(ctrlr, "RECOVERY_WAITING\n");
qpair->recovery_state = RECOVERY_WAITING;
nvme_ctrlr_reset(ctrlr);