Patch "nvmet: fix workqueue MEM_RECLAIM flushing dependency" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nvmet: fix workqueue MEM_RECLAIM flushing dependency

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nvmet-fix-workqueue-mem_reclaim-flushing-dependency.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit effb487005884640b39f1096bd4c5cce74b7052b
Author: Sagi Grimberg <sagi@xxxxxxxxxxx>
Date:   Wed Sep 28 09:39:10 2022 +0300

    nvmet: fix workqueue MEM_RECLAIM flushing dependency
    
    [ Upstream commit ddd2b8de9f85b388925e7dc46b3890fc1a0d8d24 ]
    
    The keep alive timer needs to stay on nvmet_wq, and not
    modified to reschedule on the system_wq.
    
    This fixes a warning:
    ------------[ cut here ]------------
    workqueue: WQ_MEM_RECLAIM
    nvmet-wq:nvmet_rdma_release_queue_work [nvmet_rdma] is flushing
    !WQ_MEM_RECLAIM events:nvmet_keep_alive_timer [nvmet]
    WARNING: CPU: 3 PID: 1086 at kernel/workqueue.c:2628
    check_flush_dependency+0x16c/0x1e0
    
    Reported-by: Yi Zhang <yi.zhang@xxxxxxxxxx>
    Fixes: 8832cf922151 ("nvmet: use a private workqueue instead of the system workqueue")
    Signed-off-by: Sagi Grimberg <sagi@xxxxxxxxxxx>
    Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>
    Signed-off-by: Christoph Hellwig <hch@xxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c
index 14677145bbba..aecb5853f8da 100644
--- a/drivers/nvme/target/core.c
+++ b/drivers/nvme/target/core.c
@@ -1176,7 +1176,7 @@ static void nvmet_start_ctrl(struct nvmet_ctrl *ctrl)
 	 * reset the keep alive timer when the controller is enabled.
 	 */
 	if (ctrl->kato)
-		mod_delayed_work(system_wq, &ctrl->ka_work, ctrl->kato * HZ);
+		mod_delayed_work(nvmet_wq, &ctrl->ka_work, ctrl->kato * HZ);
 }
 
 static void nvmet_clear_ctrl(struct nvmet_ctrl *ctrl)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux