drivers/dm-crypt.c : remove redundant state settings after waking up

Message ID 20240112050005.4952-1-sensor1010@163.com
State New
Headers
Series drivers/dm-crypt.c : remove redundant state settings after waking up |

Commit Message

Lizhe Jan. 12, 2024, 5 a.m. UTC
  The task status has been set to TASK_RUNNING in schedule().
No need to set again here.

Signed-off-by: Lizhe <sensor1010@163.com>
---
 drivers/md/dm-crypt.c | 1 -
 1 file changed, 1 deletion(-)
  

Patch

diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index 855b482cbff1..ab1e30630e64 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -1948,7 +1948,6 @@  static int dmcrypt_write(void *data)
 
 		schedule();
 
-		set_current_state(TASK_RUNNING);
 		spin_lock_irq(&cc->write_thread_lock);
 		goto continue_locked;