]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS4: Fix state renewals missing after boot
authorJoshua Watt <jpewhacker@gmail.com>
Thu, 9 Oct 2025 21:48:04 +0000 (15:48 -0600)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 13 Oct 2025 18:33:00 +0000 (14:33 -0400)
commit9bb3baa9d1604cd20f49ae7dac9306b4037a0e7a
treea372fe53c326a8fc053349b493492789a51a1ce9
parent9ff022f3820a31507cb93be6661bf5f3ca0609a4
NFS4: Fix state renewals missing after boot

Since the last renewal time was initialized to 0 and jiffies start
counting at -5 minutes, any clients connected in the first 5 minutes
after a reboot would have their renewal timer set to a very long
interval. If the connection was idle, this would result in the client
state timing out on the server and the next call to the server would
return NFS4ERR_BADSESSION.

Fix this by initializing the last renewal time to the current jiffies
instead of 0.

Signed-off-by: Joshua Watt <jpewhacker@gmail.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/nfs4client.c