]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFS: Fix initialisation of nfs_client cl_flags field
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Feb 2022 23:52:01 +0000 (18:52 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:41:55 +0000 (11:41 +0100)
commitc430a888eb14d1cbf02af6f6a983d6cbddcd6535
tree2420454f9944efa2cb1c050abaeb3810e8a77e93
parent279ce045aeee6556c168a15b528ee791cf04d65b
NFS: Fix initialisation of nfs_client cl_flags field

BugLink: https://bugs.launchpad.net/bugs/1963889
commit 468d126dab45718feeb728319be20bd869a5eaa7 upstream.

For some long forgotten reason, the nfs_client cl_flags field is
initialised in nfs_get_client() instead of being initialised at
allocation time. This quirk was harmless until we moved the call to
nfs_create_rpc_client().

Fixes: dd99e9f98fbf ("NFSv4: Initialise connection to the server in nfs4_alloc_client()")
Cc: stable@vger.kernel.org # 4.8.x
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/client.c