]> git.ipfire.org Git - thirdparty/linux.git/commit
netfs: avoid double increment of retry_count in subreq
authorShyam Prasad N <sprasad@microsoft.com>
Sat, 31 Jan 2026 08:33:05 +0000 (14:03 +0530)
committerSteve French <stfrench@microsoft.com>
Sun, 8 Feb 2026 23:07:43 +0000 (17:07 -0600)
commita5ca32d031bbba5160e1f555aabb75a3f40f918d
tree890890eecaa452838c22564df4d042385de702fb
parent82e8885bd7633a36ee9050e6d7f348a4155eed5f
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>
fs/netfs/write_retry.c