diff options
author | 2025-02-12 22:24:00 +0000 | |
---|---|---|
committer | 2025-02-13 16:00:48 +0100 | |
commit | d01c495f432ce34df8bfd092e71720a2cf169a90 (patch) | |
tree | cfead93ecb1f82b2e7c854ecd547f35fefc6816c /fs/netfs/write_issue.c | |
parent | netfs: Fix a number of read-retry hangs (diff) | |
download | wireguard-linux-d01c495f432ce34df8bfd092e71720a2cf169a90.tar.xz wireguard-linux-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 <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20250212222402.3618494-3-dhowells@redhat.com
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/netfs/write_issue.c')
-rw-r--r-- | fs/netfs/write_issue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/netfs/write_issue.c b/fs/netfs/write_issue.c index 69727411683e..77279fc5b5a7 100644 --- a/fs/netfs/write_issue.c +++ b/fs/netfs/write_issue.c @@ -253,6 +253,7 @@ void netfs_reissue_write(struct netfs_io_stream *stream, subreq->retry_count++; __clear_bit(NETFS_SREQ_MADE_PROGRESS, &subreq->flags); __set_bit(NETFS_SREQ_IN_PROGRESS, &subreq->flags); + netfs_stat(&netfs_n_wh_retry_write_subreq); netfs_do_issue_write(stream, subreq); } |