Skip to content

NFS LOCALIO: fixes and various cleanups

Mike Snitzer linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesIn review
  2. v15 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7nfs_common: fix race in NFS calls to nfsd_file_put_local() and nfsd_serv_put()fs/nfs/localio.c fs/nfs_common/nfslocalio.c fs/nfsd/filecache.c +3 more+26 -80 replies
2/7nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORTfs/Kconfig+1 -10 replies
3/7nfsd/localio: fix nfsd_file tracepoints to handle NULL rqstpfs/nfsd/trace.h+3 -31 reply
4/7nfs/localio: remove redundant suid/sgid handlingfs/nfs/localio.c+1 -60 replies
5/7nfs/localio: eliminate unnecessary kref in nfs_local_fsync_ctxfs/nfs/localio.c+3 -170 replies
6/7nfs/localio: remove extra indirect nfs_to call to check {read,write}_iterfs/nfs/localio.c+19 -130 replies
7/7nfs/localio: eliminate need for nfs_local_fsync_work forward declarationfs/nfs/localio.c+15 -160 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchChuck Lever
1/7
2/7
3/7R-b
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [6.12-rc2 v2 PATCH 0/7] NFS LOCALIO: fixes and various cleanups

Hi,

The first 3 patches are clear fixes which are needed ASAP (patch 1 is the same from v1 of these series, patch 2 and 3 are new fixes).

The other 4 patches are cleanups that are more subjective (relative to them being sent for 6.12-rcX), I'd prefer they go upstream now but I can carry them until 6.13 if that is how others would like to proceed.

Please note that there are 3 other LOCALIO related fixes that should be merged into 6.12-rcX:

filemap: Fix bounds checking in filemap_read()
https://lore.kernel.org/all/c6f35a86fe9ae6aa33b2fd3983b4023c2f4f9c13.1726250071.git.trond.myklebust@hammerspace.com/T/
- still needed, Willy or Christian can you please pick this up?

filemap: filemap_read() should check that the offset is positive or zero
- Christian has staged this in linux-next via fs-next

sunrpc: fix prog selection loop in svc_process_common
- Anna has acknowledged the need for this fix but it isn't staged yet

Thanks,
Mike

Mike Snitzer (7):
nfs_common: fix race in NFS calls to nfsd_file_put_local() and

    nfsd_serv_put()

nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT nfsd/localio: fix nfsd_file tracepoints to handle NULL rqstp nfs/localio: remove redundant suid/sgid handling nfs/localio: eliminate unnecessary kref in nfs_local_fsync_ctx nfs/localio: remove extra indirect nfs_to call to check
{read,write}_iter
nfs/localio: eliminate need for nfs_local_fsync_work forward
declaration

 fs/Kconfig                 |  2 +-
 fs/nfs/localio.c           | 96 ++++++++++++++++----------------------
 fs/nfs_common/nfslocalio.c |  5 +-
 fs/nfsd/filecache.c        |  2 +-
 fs/nfsd/localio.c          |  2 +-
 fs/nfsd/nfssvc.c           |  4 +-
 fs/nfsd/trace.h            |  6 +--
 include/linux/nfslocalio.h | 15 ++++++
 8 files changed, 68 insertions(+), 64 deletions(-)
Signature · 1 line
2.44.0