From: bryan@schmersal.org
To: calum.mackay@oracle.com
Cc: linux-nfs@vger.kernel.org, Bryan Schmersal <bryan@schmersal.org>
Subject: [PATCH 2/5] Allow max_retries and delay_time to be passed as arguments to compound()
Date: Thu, 10 Apr 2025 14:17:57 -0700 [thread overview]
Message-ID: <20250410211757.480605-1-bryan@schmersal.org> (raw)
From: Bryan Schmersal <bryan@schmersal.org>
Signed-off-by: Bryan Schmersal <bryan@schmersal.org>
---
nfs4.1/nfs4client.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nfs4.1/nfs4client.py b/nfs4.1/nfs4client.py
index a180872..ba1e087 100644
--- a/nfs4.1/nfs4client.py
+++ b/nfs4.1/nfs4client.py
@@ -534,9 +534,9 @@ class SessionRecord(object):
res = self.remove_seq_op(res)
return res
- def compound(self, ops, **kwargs):
- max_retries = 10
- delay_time = 1
+ def compound(self, ops, **kwargs):[]
+ max_retries = kwargs.pop('max_retries', 10)
+ delay_time = kwargs.pop('delay_time', 1)
handle_state_errors = kwargs.pop("handle_state_errors", True)
saved_kwargs = kwargs
do_prepare = True
--
2.34.1
reply other threads:[~2025-04-10 21:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250410211757.480605-1-bryan@schmersal.org \
--to=bryan@schmersal.org \
--cc=calum.mackay@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/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