[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221029160441.15310-1-sensor1010@163.com>
Date: Sat, 29 Oct 2022 09:04:41 -0700
From: lizhe <sensor1010@....com>
To: agk@...hat.com, snitzer@...nel.org, dm-devel@...hat.com
Cc: linux-kernel@...r.kernel.org, lizhe <sensor1010@....com>
Subject: [PATCH v1] drivers/dm-crypt.c : 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 <sensor1010@....com>
---
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 159c6806c19b..dd82e5aad729 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -1913,7 +1913,6 @@ static int dmcrypt_write(void *data)
schedule();
- set_current_state(TASK_RUNNING);
spin_lock_irq(&cc->write_thread_lock);
goto continue_locked;
--
2.17.1
Powered by blists - more mailing lists