From: David Howells <dhowells@redhat.com>
To: nspmangalore@gmail.com
Cc: dhowells@redhat.com, linux-cifs@vger.kernel.org,
smfrench@gmail.com, pc@manguebit.com, bharathsm@microsoft.com,
Shyam Prasad N <sprasad@microsoft.com>
Subject: Re: [PATCH 4/4] cifs: make retry logic in read/write path consistent with other paths
Date: Wed, 21 Jan 2026 23:50:01 +0000 [thread overview]
Message-ID: <1653265.1769039401@warthog.procyon.org.uk> (raw)
In-Reply-To: <1653031.1769038583@warthog.procyon.org.uk>
David Howells <dhowells@redhat.com> wrote:
> Better to offload the pause to netfslib if we can.
I would suggest you look at doing it in netfs_retry_writes(). Something like:
(1) Add a timestamp to netfs_io_request to record either the first op being
issued or the last op being issued.
(2) After netfs_retry_writes() finishes waiting for subreqs to quiesce, wait
for the requisite amount of time since the timestamp recorded in (1)
before continuing the retry.
(3) Add a method to netfs_request_ops to allow netfslib to ask the filesystem
what backoff delay it wants to insert. This could call
smb2_should_replay().
Alternatively, set a flag on cifs_io_request indicating backoff is required
and do it in cifs_prepare_write() before waiting for credits if the flag is
set - or maybe in cifs_issue_write() - at which point clear the flag.
David
next prev parent reply other threads:[~2026-01-21 23:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-20 6:21 [PATCH 1/4] netfs: when subreq is marked for retry, do not check if it faced an error nspmangalore
2026-01-20 6:21 ` [PATCH 2/4] netfs: avoid double increment of retry_count in subreq nspmangalore
2026-01-21 23:23 ` David Howells
2026-01-20 6:21 ` [PATCH 3/4] cifs: Initialize cur_sleep value if not already done nspmangalore
2026-01-21 23:28 ` David Howells
2026-01-20 6:21 ` [PATCH 4/4] cifs: make retry logic in read/write path consistent with other paths nspmangalore
2026-01-20 11:32 ` kernel test robot
2026-01-20 17:03 ` David Howells
2026-01-21 4:45 ` Shyam Prasad N
2026-01-21 1:56 ` Steve French
2026-01-21 4:46 ` Shyam Prasad N
2026-01-21 23:36 ` David Howells
2026-01-21 23:50 ` David Howells [this message]
2026-01-29 11:38 ` Shyam Prasad N
2026-01-21 23:08 ` [PATCH 1/4] netfs: when subreq is marked for retry, do not check if it faced an error David Howells
2026-01-21 23:18 ` David Howells
2026-01-29 12:13 ` Shyam Prasad N
2026-01-29 13:43 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1653265.1769039401@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=bharathsm@microsoft.com \
--cc=linux-cifs@vger.kernel.org \
--cc=nspmangalore@gmail.com \
--cc=pc@manguebit.com \
--cc=smfrench@gmail.com \
--cc=sprasad@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox