Merge patch series "netfs: Miscellaneous fixes"
authorChristian Brauner <brauner@kernel.org>
Thu, 13 Feb 2025 15:00:53 +0000 (16:00 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 13 Feb 2025 15:00:53 +0000 (16:00 +0100)
David Howells <dhowells@redhat.com> says:

Here are some miscellaneous fixes and changes for netfslib:

 (1) Fix a number of read-retry hangs, including:

     (a) Incorrect getting/putting of references on subreqs as we retry
       them.

     (b) Failure to track whether a last old subrequest in a retried set is
       superfluous.

     (c) Inconsistency in the usage of wait queues used for subrequests
       (ie. using clear_and_wake_up_bit() whilst waiting on a private
       waitqueue).

       (Note that waitqueue consistency also needs looking at for
       netfs_io_request structs.)

 (2) Add stats counters for retries and publish in /proc/fs/netfs/stats.
     This is not a fix per se, but is useful in debugging and shouldn't
     otherwise change the operation of the code.

 (3) Fix the ordering of queuing subrequests with respect to setting the
     request flag that says we've now queued them all.

* patches from https://lore.kernel.org/r/20250212222402.3618494-1-dhowells@redhat.com:
  netfs: Fix setting NETFS_RREQ_ALL_QUEUED to be after all subreqs queued
  netfs: Add retry stat counters
  netfs: Fix a number of read-retry hangs

Link: https://lore.kernel.org/r/20250212222402.3618494-1-dhowells@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>

Trivial merge