Messages in this thread Patch in this message | | | From | 李哲 <> | Subject | [PATCH v1] net/dev.c : Remove redundant state settings after waking up | Date | Tue, 10 Jan 2023 01:14:09 -0800 |
| |
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
| |