[PATCH 0/4] netfs: Miscellaneous fixes

David Howells posted 4 patches 7 months ago
fs/9p/vfs_addr.c             |   2 +-
fs/afs/write.c               |   8 +-
fs/cachefiles/io.c           |  16 +--
fs/ceph/addr.c               |   2 +-
fs/erofs/fscache.c           |   6 +-
fs/netfs/buffered_read.c     |  32 +++--
fs/netfs/buffered_write.c    |   2 +-
fs/netfs/direct_read.c       |  10 +-
fs/netfs/direct_write.c      |  12 +-
fs/netfs/fscache_io.c        |  10 +-
fs/netfs/internal.h          |  42 +++++--
fs/netfs/misc.c              | 218 +++++++++++++++++++++++++++++++++++
fs/netfs/objects.c           |  47 ++++----
fs/netfs/read_collect.c      | 178 ++++------------------------
fs/netfs/read_pgpriv2.c      |   4 +-
fs/netfs/read_retry.c        |  26 +----
fs/netfs/read_single.c       |   6 +-
fs/netfs/write_collect.c     |  81 +++++--------
fs/netfs/write_issue.c       |  38 +++---
fs/netfs/write_retry.c       |  19 ++-
fs/smb/client/cifsproto.h    |   3 +-
fs/smb/client/cifssmb.c      |   4 +-
fs/smb/client/file.c         |   7 +-
fs/smb/client/smb2pdu.c      |   4 +-
include/linux/fscache.h      |   2 +-
include/linux/netfs.h        |  14 +--
include/trace/events/netfs.h |   7 +-
net/9p/client.c              |   6 +-
28 files changed, 427 insertions(+), 379 deletions(-)
[PATCH 0/4] netfs: Miscellaneous fixes
Posted by David Howells 7 months ago
Hi Christian,

Here are some miscellaneous fixes and changes for netfslib, if you could
pull them:

 (1) Fix an oops in write-retry due to mis-resetting the I/O iterator.

 (2) Fix the recording of transferred bytes for short DIO reads.

 (3) Fix a request's work item to not require a reference, thereby avoiding
     the need to get rid of it in BH/IRQ context.

 (4) Fix waiting and waking to be consistent about the waitqueue used.

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 (3):
  netfs: Fix oops in write-retry from mis-resetting the subreq iterator
  netfs: Fix the request's work item to not require a ref
  netfs: Fix wait/wake to be consistent about the waitqueue used

Paulo Alcantara (1):
  netfs: Fix setting of transferred bytes with short DIO reads

 fs/9p/vfs_addr.c             |   2 +-
 fs/afs/write.c               |   8 +-
 fs/cachefiles/io.c           |  16 +--
 fs/ceph/addr.c               |   2 +-
 fs/erofs/fscache.c           |   6 +-
 fs/netfs/buffered_read.c     |  32 +++--
 fs/netfs/buffered_write.c    |   2 +-
 fs/netfs/direct_read.c       |  10 +-
 fs/netfs/direct_write.c      |  12 +-
 fs/netfs/fscache_io.c        |  10 +-
 fs/netfs/internal.h          |  42 +++++--
 fs/netfs/misc.c              | 218 +++++++++++++++++++++++++++++++++++
 fs/netfs/objects.c           |  47 ++++----
 fs/netfs/read_collect.c      | 178 ++++------------------------
 fs/netfs/read_pgpriv2.c      |   4 +-
 fs/netfs/read_retry.c        |  26 +----
 fs/netfs/read_single.c       |   6 +-
 fs/netfs/write_collect.c     |  81 +++++--------
 fs/netfs/write_issue.c       |  38 +++---
 fs/netfs/write_retry.c       |  19 ++-
 fs/smb/client/cifsproto.h    |   3 +-
 fs/smb/client/cifssmb.c      |   4 +-
 fs/smb/client/file.c         |   7 +-
 fs/smb/client/smb2pdu.c      |   4 +-
 include/linux/fscache.h      |   2 +-
 include/linux/netfs.h        |  14 +--
 include/trace/events/netfs.h |   7 +-
 net/9p/client.c              |   6 +-
 28 files changed, 427 insertions(+), 379 deletions(-)
Re: [PATCH 0/4] netfs: Miscellaneous fixes
Posted by Christian Brauner 7 months ago
On Mon, 19 May 2025 10:07:00 +0100, David Howells wrote:
> Here are some miscellaneous fixes and changes for netfslib, if you could
> pull them:
> 
>  (1) Fix an oops in write-retry due to mis-resetting the I/O iterator.
> 
>  (2) Fix the recording of transferred bytes for short DIO reads.
> 
> [...]

Applied to the vfs-6.16.netfs branch of the vfs/vfs.git tree.
Patches in the vfs-6.16.netfs branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.16.netfs

[1/4] netfs: Fix oops in write-retry from mis-resetting the subreq iterator
      https://git.kernel.org/vfs/vfs/c/cd084c7184ce
[2/4] netfs: Fix setting of transferred bytes with short DIO reads
      https://git.kernel.org/vfs/vfs/c/2973904c9b79
[3/4] netfs: Fix the request's work item to not require a ref
      https://git.kernel.org/vfs/vfs/c/537b296114cc
[4/4] netfs: Fix wait/wake to be consistent about the waitqueue used
      https://git.kernel.org/vfs/vfs/c/2a6d0284a4a3