nfs_common: move localio_lock to new lock member of nfs_uuid_t
authorMike Snitzer <snitzer@kernel.org>
Sat, 16 Nov 2024 01:40:56 +0000 (20:40 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 14 Jan 2025 22:04:05 +0000 (17:04 -0500)
commit4ee7ba40007357a48447a8cbc667480acf9a006a
tree6533a2abb0b3f21e2fec46d672aa0962e24fdff1
parentb49f049a22227df701bfbca083d6cc859496e615
nfs_common: move localio_lock to new lock member of nfs_uuid_t

Remove cl_localio_lock from 'struct nfs_client' in favor of adding a
lock to the nfs_uuid_t struct (which is embedded in each nfs_client).

Push nfs_local_{enable,disable} implementation down to nfs_common.
Those methods now call nfs_localio_{enable,disable}_client.

This allows implementing nfs_localio_invalidate_clients in terms of
nfs_localio_disable_client.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/client.c
fs/nfs/localio.c
fs/nfs_common/nfslocalio.c
include/linux/nfs_fs_sb.h
include/linux/nfslocalio.h