From: Christoph Hellwig Date: Mon, 12 Jun 2017 16:21:19 +0000 (+0200) Subject: nvme: no need to wait for the reset when keepalive fails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39bdc5901f2525de3afab8a30b7acc04f6ce41c3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-by: Sagi Grimberg Reviewed-by: Sagi Grimberg --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index f1b78cc20695..73342b74d3bf 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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; } }