]> git.baikalelectronics.ru Git - 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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Feb 2022 14:13:49 +0000 (09:13 -0500)
commit41533aea419c299d11c9f2d7a75488edaf75a554
tree850a34f20ac1da52151e7f6ad64b3d61e8e77a5b
parent2d344479fe6994861cc36cadcc6ac256897789a2
NFS: Fix initialisation of nfs_client cl_flags field

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: 7b9744db9509 ("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>
fs/nfs/client.c