aboutsummaryrefslogtreecommitdiffstats
path: root/fs/netfs/write_retry.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2025-02-12 22:24:00 +0000
committerChristian Brauner <[email protected]>2025-02-13 15:00:48 +0000
commitd01c495f432ce34df8bfd092e71720a2cf169a90 (patch)
treecfead93ecb1f82b2e7c854ecd547f35fefc6816c /fs/netfs/write_retry.c
parentnetfs: Fix a number of read-retry hangs (diff)
downloadkernel-d01c495f432ce34df8bfd092e71720a2cf169a90.tar.gz
kernel-d01c495f432ce34df8bfd092e71720a2cf169a90.zip
netfs: Add retry stat counters
Add stat counters to count the number of request and subrequest retries and display them in /proc/fs/netfs/stats. Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/r/[email protected] cc: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/netfs/write_retry.c')
-rw-r--r--fs/netfs/write_retry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/netfs/write_retry.c b/fs/netfs/write_retry.c
index c841a851dd73..545d33079a77 100644
--- a/fs/netfs/write_retry.c
+++ b/fs/netfs/write_retry.c
@@ -203,6 +203,8 @@ void netfs_retry_writes(struct netfs_io_request *wreq)
struct netfs_io_stream *stream;
int s;
+ netfs_stat(&netfs_n_wh_retry_write_req);
+
/* Wait for all outstanding I/O to quiesce before performing retries as
* we may need to renegotiate the I/O sizes.
*/