* [PATCH net-next] eventpoll: Don't re-zero eventpoll fields
@ 2024-08-07 10:52 Joe Damato
2024-08-07 12:56 ` Jan Kara
2024-08-07 14:29 ` Christian Brauner
0 siblings, 2 replies; 3+ messages in thread
From: Joe Damato @ 2024-08-07 10:52 UTC (permalink / raw)
To: linux-kernel, netdev, linux-fsdevel
Cc: sdf, edumazet, kuba, mkarsten, Joe Damato, Alexander Viro,
Christian Brauner, Jan Kara
Remove redundant and unnecessary code.
ep_alloc uses kzalloc to create struct eventpoll, so there is no need to
set fields to defaults of 0. This was accidentally introduced in commit
85455c795c07 ("eventpoll: support busy poll per epoll instance") and
expanded on in follow-up commits.
Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Martin Karsten <mkarsten@uwaterloo.ca>
---
fs/eventpoll.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index f53ca4f7fced..6c0a1e9715ea 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -2200,11 +2200,6 @@ static int do_epoll_create(int flags)
error = PTR_ERR(file);
goto out_free_fd;
}
-#ifdef CONFIG_NET_RX_BUSY_POLL
- ep->busy_poll_usecs = 0;
- ep->busy_poll_budget = 0;
- ep->prefer_busy_poll = false;
-#endif
ep->file = file;
fd_install(fd, file);
return fd;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] eventpoll: Don't re-zero eventpoll fields
2024-08-07 10:52 [PATCH net-next] eventpoll: Don't re-zero eventpoll fields Joe Damato
@ 2024-08-07 12:56 ` Jan Kara
2024-08-07 14:29 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kara @ 2024-08-07 12:56 UTC (permalink / raw)
To: Joe Damato
Cc: linux-kernel, netdev, linux-fsdevel, sdf, edumazet, kuba,
mkarsten, Alexander Viro, Christian Brauner, Jan Kara
On Wed 07-08-24 10:52:31, Joe Damato wrote:
> Remove redundant and unnecessary code.
>
> ep_alloc uses kzalloc to create struct eventpoll, so there is no need to
> set fields to defaults of 0. This was accidentally introduced in commit
> 85455c795c07 ("eventpoll: support busy poll per epoll instance") and
> expanded on in follow-up commits.
>
> Signed-off-by: Joe Damato <jdamato@fastly.com>
> Reviewed-by: Martin Karsten <mkarsten@uwaterloo.ca>
Looks good. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/eventpoll.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/fs/eventpoll.c b/fs/eventpoll.c
> index f53ca4f7fced..6c0a1e9715ea 100644
> --- a/fs/eventpoll.c
> +++ b/fs/eventpoll.c
> @@ -2200,11 +2200,6 @@ static int do_epoll_create(int flags)
> error = PTR_ERR(file);
> goto out_free_fd;
> }
> -#ifdef CONFIG_NET_RX_BUSY_POLL
> - ep->busy_poll_usecs = 0;
> - ep->busy_poll_budget = 0;
> - ep->prefer_busy_poll = false;
> -#endif
> ep->file = file;
> fd_install(fd, file);
> return fd;
> --
> 2.25.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next] eventpoll: Don't re-zero eventpoll fields
2024-08-07 10:52 [PATCH net-next] eventpoll: Don't re-zero eventpoll fields Joe Damato
2024-08-07 12:56 ` Jan Kara
@ 2024-08-07 14:29 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2024-08-07 14:29 UTC (permalink / raw)
To: Joe Damato
Cc: Christian Brauner, edumazet, kuba, mkarsten, Alexander Viro,
Jan Kara, Stanislav Fomichev, linux-kernel, netdev, linux-fsdevel
On Wed, 07 Aug 2024 10:52:31 +0000, Joe Damato wrote:
> Remove redundant and unnecessary code.
>
> ep_alloc uses kzalloc to create struct eventpoll, so there is no need to
> set fields to defaults of 0. This was accidentally introduced in commit
> 85455c795c07 ("eventpoll: support busy poll per epoll instance") and
> expanded on in follow-up commits.
>
> [...]
Applied to the vfs.misc.jeff branch of the vfs/vfs.git tree.
Patches in the vfs.misc.jeff branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc.jeff
[1/1] eventpoll: Don't re-zero eventpoll fields
https://git.kernel.org/vfs/vfs/c/394923595c20
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-07 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 10:52 [PATCH net-next] eventpoll: Don't re-zero eventpoll fields Joe Damato
2024-08-07 12:56 ` Jan Kara
2024-08-07 14:29 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox