From 55ef00a79a9e9570b0f99b3ecfc3b35214f56f85 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Sat, 23 Sep 2023 11:01:49 +0300 Subject: [PATCH] qla2x00t: Avoid flush_scheduled_work() usage See also commit c014d35e7d88 ("qla2x00t-32gbit: Avoid flush_scheduled_work() usage"). --- qla2x00t/qla2x00-target/qla2x00t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index c6aa31e3b..06ade1a19 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -1680,7 +1680,7 @@ static void q2t_target_stop(struct scst_tgt *scst_tgt) spin_lock_irq(&tgt->sess_work_lock); while (!list_empty(&tgt->sess_works_list)) { spin_unlock_irq(&tgt->sess_work_lock); - flush_scheduled_work(); + flush_work(&tgt->sess_work); spin_lock_irq(&tgt->sess_work_lock); } spin_unlock_irq(&tgt->sess_work_lock);