Olga Kornievskaia
18fa56ca4c
NFSv4.1: freeze the session table upon receiving NFS4ERR_BADSESSION
...
[ Upstream commit c907e72f58ed979a24a9fdcadfbc447c51d5e509 ]
When the client received NFS4ERR_BADSESSION, it schedules recovery
and start the state manager thread which in turn freezes the
session table and does not allow for any new requests to use the
no-longer valid session. However, it is possible that before
the state manager thread runs, a new operation would use the
released slot that received BADSESSION and was therefore not
updated its sequence number. Such re-use of the slot can lead
the application errors.
Fixes: 5c441544f045 ("NFSv4.x: Handle bad/dead sessions correctly in nfs41_sequence_process()")
Signed-off-by: Olga Kornievskaia <[email protected] >
Signed-off-by: Trond Myklebust <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2023-07-27 08:37:18 +02:00
..
blocklayout
filelayout
pNFS/filelayout: Fix coalescing test for single DS
2023-01-24 07:17:58 +01:00
flexfilelayout
pnfs/flexfiles: Fix misplaced barrier in nfs4_ff_layout_prepare_ds
2021-11-17 09:48:44 +01:00
cache_lib.c
cache_lib.h
callback.c
callback.h
NFSv4.1: Fix uninitialised variable in devicenotify
2022-02-16 12:52:48 +01:00
callback_proc.c
NFSv4/pNFS: Fix another issue with a list iterator pointing to the head
2022-04-15 14:18:21 +02:00
callback_xdr.c
NFS: remove unneeded check in decode_devicenotify_args()
2022-04-15 14:18:19 +02:00
client.c
NFS: Fix initialisation of nfs_client cl_flags field
2022-02-16 12:52:47 +01:00
delegation.c
delegation.h
dir.c
NFS: LOOKUP_DIRECTORY is also ok with symlinks
2022-02-23 11:59:59 +01:00
direct.c
NFS: swap-out must always use STABLE writes.
2022-04-15 14:18:36 +02:00
dns_resolve.c
dns_resolve.h
export.c
file.c
NFS: Do not report flush errors in nfs_write_end()
2022-06-14 18:11:43 +02:00
fscache-index.c
fscache.c
fscache.h
getroot.c
inode.c
NFS: Do not report writeback errors in nfs_getattr()
2022-02-23 11:59:59 +01:00
internal.h
NFS: Memory allocation failures are not server fatal errors
2022-06-06 08:33:51 +02:00
io.c
iostat.h
Kconfig
Makefile
mount_clnt.c
namespace.c
netns.h
nfs.h
nfs2super.c
nfs2xdr.c
NFS: Return valid errors from nfs2/3_decode_dirent()
2022-04-15 14:18:18 +02:00
nfs3_fs.h
nfs3acl.c
nfs3client.c
nfs3proc.c
nfs: fix acl memory leak of posix_acl_create()
2021-07-20 16:10:49 +02:00
nfs3super.c
nfs3xdr.c
NFS: Return valid errors from nfs2/3_decode_dirent()
2022-04-15 14:18:18 +02:00
nfs4_fs.h
NFSv4 expose nfs_parse_server_name function
2022-02-16 12:52:48 +01:00
nfs4client.c
nfs4: Fix kmemleak when allocate slot failed
2022-11-10 17:57:49 +01:00
nfs4file.c
NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config
2021-06-03 08:59:06 +02:00
nfs4getroot.c
nfs4idmap.c
NFSv4: Fix races in the legacy idmapper upcall
2022-08-25 11:18:22 +02:00
nfs4idmap.h
nfs4namespace.c
NFSv4 expose nfs_parse_server_name function
2022-02-16 12:52:48 +01:00
nfs4proc.c
NFSv4.1: freeze the session table upon receiving NFS4ERR_BADSESSION
2023-07-27 08:37:18 +02:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c
NFSv4.1: Always send a RECLAIM_COMPLETE after establishing lease
2023-05-17 11:35:51 +02:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h
nfs4xdr.c
NFSv4.2: Fix a memory stomp in decode_attr_security_label
2023-01-18 11:41:07 +01:00
nfs42.h
nfs42proc.c
NFSv42: Fix pagecache invalidation after COPY/CLONE
2021-12-08 09:01:08 +01:00
nfs42xdr.c
NFSv42: Don't fail clone() unless the OP_CLONE operation failed
2021-12-01 09:23:32 +01:00
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c
NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
2021-06-03 08:59:06 +02:00
pnfs.c
pNFS: Don't keep retrying if the server replied NFS4ERR_LAYOUTUNAVAILABLE
2022-06-22 14:11:21 +02:00
pnfs.h
NFSv4/pNFS: Fix another issue with a list iterator pointing to the head
2022-04-15 14:18:21 +02:00
pnfs_dev.c
pnfs_nfs.c
pnfs/flexfiles: Fix misplaced barrier in nfs4_ff_layout_prepare_ds
2021-11-17 09:48:44 +01:00
proc.c
read.c
super.c
NFSv4: Turn off open-by-filehandle and NFS re-export for NFSv4.0
2022-09-28 11:03:56 +02:00
symlink.c
sysctl.c
sysfs.c
sysfs.h
unlink.c
write.c
NFS: Don't report errors from nfs_pageio_complete() more than once
2022-06-14 18:11:43 +02:00