Skip to content

Commit cdc5566

Browse files
committed
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>
1 parent a2f4c3f commit cdc5566

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfsd/nfssvc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void nfsd_copy_boot_verifier(__be32 verf[2], struct nfsd_net *nn)
363363

364364
static void nfsd_reset_boot_verifier_locked(struct nfsd_net *nn)
365365
{
366-
ktime_get_real_ts64(&nn->nfssvc_boot);
366+
ktime_get_raw_ts64(&nn->nfssvc_boot);
367367
}
368368

369369
void nfsd_reset_boot_verifier(struct nfsd_net *nn)

0 commit comments

Comments
 (0)