All of lore.kernel.org
 help / color / mirror / Atom feed
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: Sat, 10 Sep 2022 23:13:10 +0100	[thread overview]
Message-ID: <Yx0L9p4VMH2v2tBX@ZenIV> (raw)
In-Reply-To: <9D6CDF68-6B12-44DE-BC01-3BD0251E7F94@oracle.com>

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? ;-)

FWIW, there's a separate problem in that thing - it assumes that
pipe_buffer boundaries will end up PAGE_SIZE-aligned.  Usually
that's going to be true, but foofs_splice_read() is not required to
maintain that.  E.g. it might be working in terms of chunks
used by weird protocol used by foofs, with e.g. 1024-byte payloads
+ 300-odd bytes of framing/checskums/whatnot.  In that case it
might do 1024 bytes per pipe_buffer, with non-zero offset in page
in each of them; normal read()/splice()/etc. would work just fine
with that, but for nfsd_splice_actor() results would not be
nice.

AFAICS, sunrpc assumes that we have several pages, offset in the
first one and total size; no provisions exist for e.g. 5Kb of
data scattered in 5 chunks over 5 pages.  Correct?

  reply	other threads:[~2022-09-10 22:13 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 [this message]
2022-09-10 22:35                       ` Chuck Lever III
2022-09-11  3:51                         ` Al Viro
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=Yx0L9p4VMH2v2tBX@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.