lkml.org 
[lkml]   [2023]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1] net/dev.c : Remove redundant state settings after waking up
Date
the task status has been set to TASK_RUNNING in shcedule(),
no need to set again here

Signed-off-by: 李哲 <sensor1010@163.com>
---
net/core/dev.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index b76fb37b381e..4bd2d4b954c9 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -6580,7 +6580,6 @@ static int napi_thread_wait(struct napi_struct *napi)
schedule();
/* woken being true indicates this thread owns this napi. */
woken = true;
- set_current_state(TASK_INTERRUPTIBLE);
}
__set_current_state(TASK_RUNNING);

--
2.17.1
\
 
 \ /
  Last update: 2023-03-26 23:34    [W:0.065 / U:2.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site