netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] net/dev.c : Remove redundant state settings after waking up
@ 2023-01-10  9:14 李哲
  2023-01-10  9:29 ` Eric Dumazet
  0 siblings, 1 reply; 8+ messages in thread
From: 李哲 @ 2023-01-10  9:14 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, bigeasy, imagedong, kuniyu, petrm
  Cc: netdev, linux-kernel, 李哲

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-01 17:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-10  9:14 [PATCH v1] net/dev.c : Remove redundant state settings after waking up 李哲
2023-01-10  9:29 ` Eric Dumazet
2023-01-11  0:30   ` Jakub Kicinski
2023-01-11  0:42     ` Wei Wang
2023-01-11  7:32       ` Sebastian Andrzej Siewior
2023-01-11 18:20         ` Jakub Kicinski
2023-01-11 19:39           ` Wei Wang
     [not found]             ` <706ea669.7a09.1869dce0851.Coremail.sensor1010@163.com>
2023-03-01 17:07               ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).