[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250715153319.37428-1-sergeybashirov@gmail.com>
Date: Tue, 15 Jul 2025 18:32:17 +0300
From: Sergey Bashirov <sergeybashirov@...il.com>
To: Chuck Lever <chuck.lever@...cle.com>,
Christoph Hellwig <hch@...radead.org>,
Jeff Layton <jlayton@...nel.org>,
NeilBrown <neil@...wn.name>,
Olga Kornievskaia <okorniev@...hat.com>,
Dai Ngo <Dai.Ngo@...cle.com>,
Tom Talpey <tom@...pey.com>
Cc: linux-nfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
Konstantin Evtushenko <koevtushenko@...dex.com>,
Sergey Bashirov <sergeybashirov@...il.com>
Subject: [PATCH v2 0/3] NFSD: Fix last write offset handling in layoutcommit
These patches correct the behavior of the pNFS server when the client
sends a layoutcommit without a new file size and with zero number of
block/scsi extents.
Tested manually for the pNFS block layout setup.
Signed-off-by: Sergey Bashirov <sergeybashirov@...il.com>
---
Changes in v2:
- The first cleanup patch is unchanged
- Reworked main patch to guard entire new_size check, improved description
- Added cleanup patch to decode lc_newoffset as bool
Sergey Bashirov (3):
NFSD: Minor cleanup in layoutcommit processing
NFSD: Fix last write offset handling in layoutcommit
NFSD: Minor cleanup in layoutcommit decoding
fs/nfsd/blocklayout.c | 5 ++---
fs/nfsd/nfs4proc.c | 34 ++++++++++++++--------------------
fs/nfsd/nfs4xdr.c | 2 +-
3 files changed, 17 insertions(+), 24 deletions(-)
--
2.43.0
Powered by blists - more mailing lists