From b9d3ac48a855ed295ce660f73d3b6ba6f91fae42 Mon Sep 17 00:00:00 2001 From: Lizhe Date: Thu, 11 Jan 2024 21:00:05 -0800 Subject: [PATCH] dm crypt: remove redundant state settings after waking up The task status has been set to TASK_RUNNING in schedule(). No need to set again here. Signed-off-by: Lizhe Signed-off-by: Mike Snitzer --- drivers/md/dm-crypt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 59445763e55a..7388f45ada07 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -1964,7 +1964,6 @@ continue_locked: schedule(); - set_current_state(TASK_RUNNING); spin_lock_irq(&cc->write_thread_lock); goto continue_locked;