mm, netfs, cifs: Miscellaneous fixes
Status from this message: Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | cifs: Fix lack of credit renegotiation on read retryfs/ fs/ fs/ +3 more | +55 | 0 replies | |
| 2/6 | netfs, cifs: Fix handling of short DIO readfs/ fs/ include/ | +21 | 0 replies | |
| 3/6 | cifs: Fix copy offload to flush destination regionfs/ | +4 | 0 replies | |
| 4/6 | mm: Fix filemap_invalidate_inode() to use invalidate_inode_pages2_range()mm/ | +1 | 2 replies | |
| 5/6 | cifs: Fix FALLOC_FL_ZERO_RANGE to preflush buffered part of target regionfs/ | +14 | 0 replies | |
| 6/6 | netfs, cifs: Improve some debugging bitsfs/ fs/ | +6 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by.
| Patch | Steve French |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | Tested--by |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] mm, netfs, cifs: Miscellaneous fixes
Hi Christian, Steve,
Firstly, here are some fixes to DIO read handling and the retrying of reads, particularly in relation to cifs:
(1) Fix the missing credit renegotiation in cifs on the retrying of reads. The credits we had ended with the original read (or the last retry) and to perform a new read we need more credits otherwise the server can reject our read with EINVAL.
(2) Fix the handling of short DIO reads to avoid ENODATA when the read retry tries to access a portion of the file after the EOF.
Secondly, some patches fixing cifs copy and zero offload:
(3) Fix cifs_file_copychunk_range() to not try to partially invalidate folios that are only partly covered by the range, but rather flush them back and invalidate them.
(4) Fix filemap_invalidate_inode() to use the correct invalidation function so that it doesn't leave partially invalidated folios hanging around (which may hide part of the result of an offloaded copy).
(5) Fix smb3_zero_data() to correctly handle zeroing of data that's buffered locally but not yet written back and with the EOF position on the server short of the local EOF position.
Note that this will also affect afs and 9p, particularly with regard to direct I/O writes.
And finally, here's an adjustment to debugging statements:
(6) Adjust three debugging output statements. Not strictly a fix, so could be dropped. Including the subreq ID in some extra debug lines helps a bit, though.
The patches can also be found here:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes
Thanks,
David
David Howells (6):
cifs: Fix lack of credit renegotiation on read retry netfs, cifs: Fix handling of short DIO read
cifs: Fix copy offload to flush destination region
mm: Fix filemap_invalidate_inode() to use
invalidate_inode_pages2_range()
cifs: Fix FALLOC_FL_ZERO_RANGE to preflush buffered part of target
region
netfs, cifs: Improve some debugging bits
fs/netfs/io.c | 21 +++++++++++++------- fs/smb/client/cifsfs.c | 21 ++++---------------- fs/smb/client/cifsglob.h | 1 + fs/smb/client/file.c | 37 ++++++++++++++++++++++++++++++++---- fs/smb/client/smb2ops.c | 26 +++++++++++++++++++------ fs/smb/client/smb2pdu.c | 41 +++++++++++++++++++++++++--------------- fs/smb/client/trace.h | 1 + include/linux/netfs.h | 1 + mm/filemap.c | 2 +- 9 files changed, 101 insertions(+), 50 deletions(-)