]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Write verifier might go backwards
authorChuck Lever <chuck.lever@oracle.com>
Thu, 30 Dec 2021 15:26:18 +0000 (10:26 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 8 Jan 2022 19:42:02 +0000 (14:42 -0500)
commitdaa11e9092d79be04b5ee2e592c38f5de94cadcb
tree92edd125eee8a4d0e952ad936080a0b3b78fbcc2
parent2c0ee7a9df2d47f1ea4ee73360cf5dd9816c6904
NFSD: Write verifier might go backwards

When vfs_iter_write() starts to fail because a file system is full,
a bunch of writes can fail at once with ENOSPC. These writes
repeatedly invoke nfsd_reset_boot_verifier() in quick succession.

Ensure that the time it grabs doesn't go backwards due to an ntp
adjustment going on at the same time.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfssvc.c