From 2f192152a043094702bd50ae04ffbb43c8abdbd9 Mon Sep 17 00:00:00 2001 From: Sagi Grimberg Date: Sun, 6 Nov 2022 01:22:38 +0200 Subject: [PATCH 13/16] nvme-auth: remove redundant auth_work flush only ctrl deletion calls nvme_auth_free, which was stopped prior in the teardown stage, so there is no possibility that it should ever run when nvme_auth_free is called. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/auth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index b78e0df54f6c..0159179c2455 100644 --- a/drivers/nvme/host/auth.c +++ b/drivers/nvme/host/auth.c @@ -988,10 +988,8 @@ void nvme_auth_free(struct nvme_ctrl *ctrl) struct nvme_dhchap_queue_context *chap; int i; - nvme_foreach_dhchap(i, chap, ctrl) { - flush_work(&chap->auth_work); + nvme_foreach_dhchap(i, chap, ctrl) nvme_auth_free_dhchap(chap); - } if (ctrl->host_key) { nvme_auth_free_key(ctrl->host_key); ctrl->host_key = NULL; -- 2.34.1