linux/fs/nfsd
Haoxiang Li 02a02eb93c nfsd: Drop the client reference in client_states_open()
commit 1f941b2c23 upstream.

In error path, call drop_client() to drop the reference
obtained by get_nfsdfs_clp().

Fixes: 78599c42ae ("nfsd4: add file to display list of client's opens")
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-19 13:10:03 +01:00
..
acl.h NFSD: add posix ACLs to struct nfsd_attrs 2024-04-10 16:19:14 +02:00
auth.c nfsd: auth: Fix gid sorting when rootsquash enabled 2018-01-22 20:13:07 -08:00
auth.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
blocklayout.c NFSD: use correct reservation type in nfsd4_scsi_fence_client 2026-01-19 13:09:51 +01:00
blocklayoutxdr.c NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-29 14:03:13 +01:00
blocklayoutxdr.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cache.h nfsd: make all of the nfsd stats per-network namespace 2024-09-04 13:23:31 +02:00
current_stateid.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
export.c nfsd: Mark variable __maybe_unused to avoid W=1 build break 2026-01-19 13:09:53 +01:00
export.h NFSD: Fix frame size warning in svc_export_parse() 2024-09-04 13:23:29 +02:00
fault_inject.c nfsd: no need to check return value of debugfs_create functions 2019-07-03 16:57:17 +02:00
filecache.c nfsd: add list_head nf_gc to struct nfsd_file 2025-01-23 17:16:03 +01:00
filecache.h nfsd: add list_head nf_gc to struct nfsd_file 2025-01-23 17:16:03 +01:00
flexfilelayout.c NFSD: Define a proc_layoutcommit for the FlexFiles layout type 2025-10-29 14:03:15 +01:00
flexfilelayoutxdr.c NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-29 14:03:13 +01:00
flexfilelayoutxdr.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
idmap.h nfsd: Remove duplicate define of IDMAP_NAMESZ/IDMAP_TYPE_xx 2015-07-20 14:58:46 -04:00
Kconfig nfs: add missing selections of CONFIG_CRC32 2025-05-02 07:44:12 +02:00
lockd.c nfsd: nfserr_jukebox in nlm_fopen should lead to a retry 2025-10-19 16:21:49 +02:00
Makefile nfsd: allow disabling NFSv2 at compile time 2024-04-10 16:19:21 +02:00
netns.h NFSD: Limit the number of concurrent async COPY operations 2024-12-14 19:50:37 +01:00
nfs2acl.c nfsd: clear acl_access/acl_default after releasing them 2025-03-13 12:50:34 +01:00
nfs3acl.c nfsd: clear acl_access/acl_default after releasing them 2025-03-13 12:50:34 +01:00
nfs3proc.c NFSD: Add an NFSD_FILE_GC flag to enable nfsd_file garbage collection 2024-04-10 16:19:22 +02:00
nfs3xdr.c NFSD: Clean up WRITE arg decoders 2024-04-10 16:19:18 +02:00
nfs4acl.c NFSD: add posix ACLs to struct nfsd_attrs 2024-04-10 16:19:14 +02:00
nfs4callback.c NFSD: fix hang in nfsd4_shutdown_callback 2025-03-13 12:50:34 +01:00
nfs4idmap.c nfsd: call cache_put if xdr_reserve_space returns NULL 2024-10-17 15:11:04 +02:00
nfs4layouts.c NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-29 14:03:13 +01:00
nfs4proc.c NFSD: Fix crash in nfsd4_read_release() 2025-12-07 06:09:13 +09:00
nfs4recover.c NFSD: Cap the number of bytes copied by nfs4_reset_recoverydir() 2024-12-14 19:51:07 +01:00
nfs4state.c nfsd: Drop the client reference in client_states_open() 2026-01-19 13:10:03 +01:00
nfs4xdr.c NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-29 14:03:13 +01:00
nfscache.c nfsd: make all of the nfsd stats per-network namespace 2024-09-04 13:23:31 +02:00
nfsctl.c nfsd: make svc_stat per-network namespace instead of global 2024-09-04 13:23:31 +02:00
nfsd.h nfsd: remove nfsd_stats, make th_cnt a global counter 2024-09-04 13:23:31 +02:00
nfsfh.c nfsd: make all of the nfsd stats per-network namespace 2024-09-04 13:23:31 +02:00
nfsfh.h nfs: add missing selections of CONFIG_CRC32 2025-05-02 07:44:12 +02:00
nfsproc.c NFSD: Use set_bit(RQ_DROPME) 2024-04-10 16:19:25 +02:00
nfssvc.c nfsd: Initialize ssc before laundromat_work to prevent NULL dereference 2025-06-27 11:05:23 +01:00
nfsxdr.c NFSD: Clean up WRITE arg decoders 2024-04-10 16:19:18 +02:00
pnfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
state.h NFSD: add delegation reaper to react to low memory condition 2024-04-10 16:19:24 +02:00
stats.c nfsd: make svc_stat per-network namespace instead of global 2024-09-04 13:23:31 +02:00
stats.h nfsd: make svc_stat per-network namespace instead of global 2024-09-04 13:23:31 +02:00
trace.c NFSD: Add SPDX header for fs/nfsd/trace.c 2020-11-30 13:00:24 -05:00
trace.h NFSD: Replace nfsd_prune_bucket() 2024-09-04 13:23:29 +02:00
vfs.c nfsd: map the EBADMSG to nfserr_io to avoid warning 2024-10-17 15:11:39 +02:00
vfs.h NFSD: Pass the target nfsd_file to nfsd_commit() 2024-04-10 16:19:21 +02:00
xdr.h SUNRPC: Change return value type of .pc_encode 2024-04-10 16:18:54 +02:00
xdr3.h SUNRPC: Change return value type of .pc_encode 2024-04-10 16:18:54 +02:00
xdr4.h NFSD: Rework encoding and decoding of nfsd4_deviceid 2025-10-29 14:03:13 +01:00
xdr4cb.h NFSD: add support for sending CB_RECALL_ANY 2024-04-10 16:19:24 +02:00