[PATCH 0/2] nfsd: don't use the xdr buf for temporary storage in CB_NOTIFY
Jeff Layton <[email protected]>
| Newsgroups | org.kernel.vger.linux-nfs,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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]/ Signed-off-by: Jeff Layton <[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, -- Jeff Layton <[email protected]>