nvme: no need to wait for the reset when keepalive fails
We don't need to wait for the reset from the delayed work item that is kicked off when we don't get a keepalive. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
This commit is contained in:
Родитель
d86c4d8ef3
Коммит
39bdc5901f
|
@ -624,7 +624,7 @@ static void nvme_keep_alive_work(struct work_struct *work)
|
|||
if (nvme_keep_alive(ctrl)) {
|
||||
/* allocation failure, reset the controller */
|
||||
dev_err(ctrl->device, "keep-alive failed\n");
|
||||
nvme_reset_ctrl_sync(ctrl);
|
||||
nvme_reset_ctrl(ctrl);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче