Skip to content

Commit 48cc7ec

Browse files
Olivier Langloisaxboe
authored andcommitted
io_uring/napi: remove duplicate io_napi_entry timeout assignation
io_napi_entry() has 2 calling sites. One of them is unlikely to find an entry and if it does, the timeout should arguable not be updated. The other io_napi_entry() calling site is overwriting the update made by io_napi_entry() so the io_napi_entry() timeout value update has no or little value and therefore is removed. Signed-off-by: Olivier Langlois <[email protected]> Link: https://lore.kernel.org/r/145b54ff179f87609e20dffaf5563c07cdbcad1a.1723423275.git.olivier@trillion01.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 84f2eec commit 48cc7ec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

io_uring/napi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ static struct io_napi_entry *io_napi_hash_find(struct hlist_head *hash_list,
2626
hlist_for_each_entry_rcu(e, hash_list, node) {
2727
if (e->napi_id != napi_id)
2828
continue;
29-
e->timeout = jiffies + NAPI_TIMEOUT;
3029
return e;
3130
}
3231

0 commit comments

Comments
 (0)