Skip to content

LOCALIO: don't recall a localio client's own delegations

Jeff Layton linux-nfs 1 version New

Get series with b4
b4 am [email protected] change-id 20261204-localio-deleg-d07d4e7ee937

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3NFSD: don't recall a LOCALIO client's own delegationsfs/nfs_common/nfslocalio.c fs/nfsd/localio.c fs/nfsd/netns.h +4 more+120 -30 replies
2/3NFS: tell nfsd which client a LOCALIO open is forfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/internal.h fs/nfs/localio.c +4 more+53 -170 replies
3/3pNFS/flexfiles: tell nfsd which client a LOCALIO data server open is forfs/nfs/flexfilelayout/flexfilelayout.c+9 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] LOCALIO: don't recall a localio client's own delegations

This patchset fixes an issue with localio: namely that localio opens break the the client's own lease. Because that open is done from the client's context, we can't rely on looking at whether it's an nfsd thread.

Thus we need to do a bit of extra tracking in the server to keep track of tasks in localio. The first patch adds this. The second and third patches make the localio callers in the client pass in the right info to vet the lease holder and breaker.

This is a combined client and server patchset, but most of the changes are in nfsd, so this should probably go in via Chuck's tree.

Please consider for v7.6!

---
Jeff Layton (3):
NFSD: don't recall a LOCALIO client's own delegations
NFS: tell nfsd which client a LOCALIO open is for pNFS/flexfiles: tell nfsd which client a LOCALIO data server open is for

 fs/nfs/flexfilelayout/flexfilelayout.c | 10 ++++-
 fs/nfs/internal.h                      |  7 +--
 fs/nfs/localio.c                       | 39 +++++++++++++----
 fs/nfs/pagelist.c                      |  2 +-
 fs/nfs/write.c                         |  3 +-
 fs/nfs_common/nfslocalio.c             | 13 +++++-
 fs/nfsd/localio.c                      | 14 +++++-
 fs/nfsd/netns.h                        |  3 ++
 fs/nfsd/nfs4state.c                    | 78 ++++++++++++++++++++++++++++++++++
 fs/nfsd/nfsctl.c                       |  2 +
 fs/nfsd/state.h                        | 22 ++++++++++
 include/linux/nfslocalio.h             |  5 ++-
 12 files changed, 179 insertions(+), 19 deletions(-)

---
base-commit: eb76c146d6facf9588b6c1da360e2db41cdda335
change-id: 20261204-localio-deleg-d07d4e7ee937

Best regards,

Signature · 1 line
Jeff Layton <[email protected]>