From: Oleg Nesterov <oleg@redhat.com>
To: Breno Leitao <leitao@debian.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>,
Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>,
mjguzik@gmail.com, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-team@meta.com
Subject: Re: [PATCH] splice: pass a poll key when waking pipe readers and writers
Date: Wed, 16 Sep 2026 12:57:13 +0200 [thread overview]
Message-ID: <aqp2CcOnuVEeRV8L@redhat.com> (raw)
In-Reply-To: <20260916-b4-splice-poll-key-v1-1-438a19351efb@debian.org>
On 09/16, Breno Leitao wrote:
>
> --- a/fs/splice.c
> +++ b/fs/splice.c
> @@ -179,7 +179,8 @@ static void wakeup_pipe_readers(struct pipe_inode_info *pipe)
> {
> smp_mb();
> if (waitqueue_active(&pipe->rd_wait))
> - wake_up_interruptible(&pipe->rd_wait);
> + wake_up_interruptible_poll(&pipe->rd_wait,
> + EPOLLIN | EPOLLRDNORM);
> kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
> }
>
> @@ -415,7 +416,8 @@ static void wakeup_pipe_writers(struct pipe_inode_info *pipe)
> {
> smp_mb();
> if (waitqueue_active(&pipe->wr_wait))
> - wake_up_interruptible(&pipe->wr_wait);
> + wake_up_interruptible_poll(&pipe->wr_wait,
> + EPOLLOUT | EPOLLWRNORM);
> kill_fasync(&pipe->fasync_writers, SIGIO, POLL_OUT);
> }
Acked-by: Oleg Nesterov <oleg@redhat.com>
While at it... I think they both should use wq_has_sleeper().
If you agree, feel free to send V2 with this additional change.
Or I will send this trivial cleanup on top of your patch.
Oleg.
next prev parent reply other threads:[~2026-09-16 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 8:37 Breno Leitao
2026-09-16 10:57 ` Oleg Nesterov [this message]
2026-09-16 11:31 ` Breno Leitao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aqp2CcOnuVEeRV8L@redhat.com \
--to=oleg@redhat.com \
--cc=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=kernel-team@meta.com \
--cc=leitao@debian.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjguzik@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®