Skip to content

nfsd: don't use the xdr buf for temporary storage in CB_NOTIFY

Jeff Layton linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20260812-dir-deleg-98f3bdcb8223

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsd: pass caller-provided attrmask storage into nfsd4_setup_notify_entry4()fs/nfsd/nfs4xdr.c+14 -140 replies
2/2nfsd: back CB_NOTIFY notify_mask words with per-delegation storagefs/nfsd/nfs4state.c fs/nfsd/state.h+10 -110 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/2] nfsd: don't use the xdr buf for temporary storage in CB_NOTIFY

I posted a patch to fix up a sparse warning with a cast a few days ago [1], but Chuck objected and wanted to fix this by moving these (host-endian) allocations out of the xdr stream entirely.

This patchset should do that. Some of them are able to be moved to temporary stack allocations, but the mask fields need a separate kmalloc'ed field tracked in struct nfsd4_cb_notify.

Please consider these for v7.4.

[1]: https://lore.kernel.org/linux-nfs/[email protected]/

---
Jeff Layton (2):
nfsd: pass caller-provided attrmask storage into nfsd4_setup_notify_entry4()
nfsd: back CB_NOTIFY notify_mask words with per-delegation storage

 fs/nfsd/nfs4state.c | 20 +++++++++-----------
 fs/nfsd/nfs4xdr.c   | 28 ++++++++++++++--------------
 fs/nfsd/state.h     |  1 +
 3 files changed, 24 insertions(+), 25 deletions(-)

---
base-commit: d33023dfd81b31e80fe65c2921993b1a6cd7043c
change-id: 20260812-dir-deleg-98f3bdcb8223

Best regards,

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