]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfs: move the nfs4_data_server_cache into struct nfs_net
authorJeff Layton <jlayton@kernel.org>
Thu, 10 Apr 2025 20:42:04 +0000 (16:42 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 28 Apr 2025 03:25:44 +0000 (23:25 -0400)
commitd5fb22a7c585b12ec3e6cef150689f7386e8cfd0
tree55948d34f28d65b2633c9aae34f39cde99e02b7b
parent6b9785dc8b13d9fb75ceec8cf4ea7ec3f3b1edbc
nfs: move the nfs4_data_server_cache into struct nfs_net

Since struct nfs4_pnfs_ds should not be shared between net namespaces,
move from a global list of objects to a per-netns list and spinlock.

Tested-by: Sargun Dillon <sargun@sargun.me>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/r/20250410-nfs-ds-netns-v2-2-f80b7979ba80@kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/client.c
fs/nfs/netns.h
fs/nfs/pnfs_nfs.c