]> git.ipfire.org Git - thirdparty/linux.git/commit
NFSD: Disallow layoutget during grace period
authorSergey Bashirov <sergeybashirov@gmail.com>
Mon, 25 Aug 2025 13:11:02 +0000 (16:11 +0300)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 25 Sep 2025 14:01:24 +0000 (10:01 -0400)
commitdb155b7c7c85b5f14edec21e164001a168581ffb
tree0defe3123a1d8580796e50388a7edc344949e662
parent6c15463c4511d26f2a820f63f5b76624a71afc44
NFSD: Disallow layoutget during grace period

When the server is recovering from a reboot and is in a grace period,
any operation that may result in deletion or reallocation of block
extents should not be allowed. See RFC 8881, section 18.43.3.

If multiple clients write data to the same file, rebooting the server
during writing may result in file corruption. In the worst case, the
exported XFS may also become corrupted. Observed this behavior while
testing pNFS block volume setup.

Co-developed-by: Konstantin Evtushenko <koevtushenko@yandex.com>
Signed-off-by: Konstantin Evtushenko <koevtushenko@yandex.com>
Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c