From: Al Viro <viro@zeniv.linux.org.uk>
To: Chuck Lever III <chuck.lever@oracle.com>
Cc: Benjamin Coddington <bcodding@redhat.com>,
Olga Kornievskaia <aglo@umich.edu>,
Jeff Layton <jlayton@kernel.org>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: Is this nfsd kernel oops known?
Date: Sun, 11 Sep 2022 04:51:09 +0100 [thread overview]
Message-ID: <Yx1bLd15llExAQ/L@ZenIV> (raw)
In-Reply-To: <5FF21605-6F1E-4DF1-A141-F86263CA579F@oracle.com>
On Sat, Sep 10, 2022 at 10:35:52PM +0000, Chuck Lever III wrote:
>
>
> > On Sep 10, 2022, at 6:13 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> >
> > On Sat, Sep 10, 2022 at 09:21:11PM +0000, Chuck Lever III wrote:
> >
> >> It's also possible that recent simplifications I've done to the splice
> >> read actor accidentally removed the ability to deal with compound pages.
> >> You might want to review the commit history of nfsd_splice_actor() to
> >> see if there is an historic version that would behave correctly with
> >> the new copy_page_to_iter().
> >
> > Nah, that's unrelated...
> >
> >> Is the need to deal with CompoundPage documented somewhere? If not,
> >> perhaps nfsd_splice_actor() could mention it so that overzealous
> >> maintainers don't break it again.
> >
> >>> + struct page *page = buf->page; // may be a compound one
> >
> > Does that qualify? ;-)
>
> Well, no, since you just added it :-) I meant pre-existing
> documentation of the API. I take your remark as polite
> encouragement to go and look for it, because this is an
> area where I need deeper understanding.
Not really - quality of documentation aside, it's a combination of splice
from sockets being capable of stuffing skb fragments into destination pipe
and skb allocations using compound pages. E.g. AF_UNIX sendmsg() on
a large datagram will result in that. socketpair(), then such sendmsg()
on one end, splice() from another and there you go - references to compound
pages ending up in pipe buffers...
nfsd_splice_read() does file-to-pipe splice (into internal pipe) + feeding
the contents of that pipe into nfsd_splice_actor(); the new part here is
that file-to-pipe splice from regular file can end up with the thing that
had always been possible for file-to-pipe splice from sockets...
next prev parent reply other threads:[~2022-09-11 3:51 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 17:14 Is this nfsd kernel oops known? Olga Kornievskaia
2022-08-30 17:49 ` Jeff Layton
2022-08-30 18:22 ` Olga Kornievskaia
2022-08-30 18:26 ` Chuck Lever III
2022-08-30 18:33 ` Olga Kornievskaia
2022-08-30 18:41 ` Chuck Lever III
2022-08-30 18:54 ` Olga Kornievskaia
2022-09-01 13:51 ` Olga Kornievskaia
2022-09-01 14:33 ` Benjamin Coddington
2022-09-01 20:08 ` Chuck Lever III
2022-09-02 1:27 ` Olga Kornievskaia
2022-09-02 20:58 ` Benjamin Coddington
2022-09-02 21:13 ` Chuck Lever III
2022-09-03 0:38 ` Benjamin Coddington
2022-09-03 3:34 ` Olga Kornievskaia
2022-09-03 16:41 ` Chuck Lever III
2022-09-06 18:28 ` Benjamin Coddington
2022-09-06 19:12 ` Olga Kornievskaia
2022-09-07 4:58 ` Chuck Lever III
2022-09-07 12:52 ` Benjamin Coddington
2022-09-10 21:14 ` Al Viro
2022-09-10 21:21 ` Chuck Lever III
2022-09-10 22:13 ` Al Viro
2022-09-10 22:35 ` Chuck Lever III
2022-09-11 3:51 ` Al Viro [this message]
2022-09-11 10:47 ` Benjamin Coddington
2022-09-11 18:36 ` Chuck Lever III
2022-09-11 19:39 ` Al Viro
2022-09-12 18:45 ` Benjamin Coddington
2022-09-13 2:43 ` [pull request] vfs.git: fix for nfsd regression caused by iov_iter stuff Al Viro
2022-09-13 13:16 ` pr-tracker-bot
2022-09-03 4:25 ` Is this nfsd kernel oops known? NeilBrown
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=Yx1bLd15llExAQ/L@ZenIV \
--to=viro@zeniv.linux.org.uk \
--cc=aglo@umich.edu \
--cc=bcodding@redhat.com \
--cc=chuck.lever@oracle.com \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
/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