Linux NFS development
 help / color / mirror / Atom feed
* [PATCH v4 0/4] NFSv4.2: Various READ_PLUS fixes
@ 2023-06-30 20:42 Anna Schumaker
  2023-06-30 20:42 ` [PATCH v4 1/4] NFSv4.2: Fix READ_PLUS smatch warnings Anna Schumaker
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Anna Schumaker @ 2023-06-30 20:42 UTC (permalink / raw)
  To: linux-nfs, trond.myklebust; +Cc: anna

From: Anna Schumaker <Anna.Schumaker@Netapp.com>

These patches are a handul of fixes I've done recently to the READ_PLUS
code. This includes fixing some smatch warnings, fixing the XDR reply
length calculation, improving scratch buffer handling, and having
xdr_inline_decode() kmap pages if we detect that they're HIGHMEM so we
don't oops during READ_PLUS xdr decoding.

Thoughts? Patch #4 probably needs the most review, and I'm open to other
approaches if something else makes more sense!

Thanks,
Anna

Anna Schumaker (4):
  NFSv4.2: Fix READ_PLUS smatch warnings
  NFSv4.2: Fix READ_PLUS size calculations
  NFSv4.2: Rework scratch handling for READ_PLUS (again)
  SUNRPC: kmap() the xdr pages during decode

 fs/nfs/internal.h          |  1 +
 fs/nfs/nfs42.h             |  1 +
 fs/nfs/nfs42xdr.c          | 17 +++++++++++------
 fs/nfs/nfs4proc.c          | 13 +------------
 fs/nfs/read.c              | 10 ++++++++++
 include/linux/sunrpc/xdr.h |  2 ++
 net/sunrpc/clnt.c          |  1 +
 net/sunrpc/xdr.c           | 17 ++++++++++++++++-
 8 files changed, 43 insertions(+), 19 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-30 23:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 20:42 [PATCH v4 0/4] NFSv4.2: Various READ_PLUS fixes Anna Schumaker
2023-06-30 20:42 ` [PATCH v4 1/4] NFSv4.2: Fix READ_PLUS smatch warnings Anna Schumaker
2023-06-30 20:42 ` [PATCH v4 2/4] NFSv4.2: Fix READ_PLUS size calculations Anna Schumaker
2023-06-30 20:42 ` [PATCH v4 3/4] NFSv4.2: Rework scratch handling for READ_PLUS (again) Anna Schumaker
2023-06-30 20:42 ` [PATCH v4 4/4] SUNRPC: kmap() the xdr pages during decode Anna Schumaker
2023-06-30 23:01   ` Chuck Lever
2023-06-30 23:46     ` Anna Schumaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox