diff options
| author | Shyam Prasad N <sprasad@microsoft.com> | 2026-01-31 11:33:05 +0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-02-09 02:07:43 +0300 |
| commit | a5ca32d031bbba5160e1f555aabb75a3f40f918d (patch) | |
| tree | 890890eecaa452838c22564df4d042385de702fb | |
| parent | 82e8885bd7633a36ee9050e6d7f348a4155eed5f (diff) | |
| download | linux-a5ca32d031bbba5160e1f555aabb75a3f40f918d.tar.xz | |
netfs: avoid double increment of retry_count in subreq
This change fixes the instance of double incrementing of
retry_count. The increment of this count already happens
when netfs_reissue_write gets called. Incrementing this
value before is not necessary.
Fixes: 4acb665cf4f3 ("netfs: Work around recursion by abandoning retry if nothing read")
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
| -rw-r--r-- | fs/netfs/write_retry.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/netfs/write_retry.c b/fs/netfs/write_retry.c index fc9c3e0d34d8..29489a23a220 100644 --- a/fs/netfs/write_retry.c +++ b/fs/netfs/write_retry.c @@ -98,7 +98,6 @@ static void netfs_retry_write_stream(struct netfs_io_request *wreq, subreq->start = start; subreq->len = len; __clear_bit(NETFS_SREQ_NEED_RETRY, &subreq->flags); - subreq->retry_count++; trace_netfs_sreq(subreq, netfs_sreq_trace_retry); /* Renegotiate max_len (wsize) */ |
