linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] NFS4.1 handle interrupted slot reuse from ERR_DELAY
@ 2017-04-22 16:31 Olga Kornievskaia
  2017-04-26 16:42 ` Trond Myklebust
  0 siblings, 1 reply; 2+ messages in thread
From: Olga Kornievskaia @ 2017-04-22 16:31 UTC (permalink / raw)
  To: Trond.Myklebust, anna.schumaker; +Cc: linux-nfs

If the RPC slot was interrupted and server replied to the next
operation on the "reused" slot with ERR_DELAY, don't clear out
the "interrupted" flag until we properly recover.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
---
 fs/nfs/nfs4proc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 0d3347e..a15979c 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -697,7 +697,8 @@ static int nfs41_sequence_process(struct rpc_task *task,
 	session = slot->table->session;
 
 	if (slot->interrupted) {
-		slot->interrupted = 0;
+		if (task->tk_status != -NFS4ERR_DELAY)
+			slot->interrupted = 0;
 		interrupted = true;
 	}
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] NFS4.1 handle interrupted slot reuse from ERR_DELAY
  2017-04-22 16:31 [PATCH 1/1] NFS4.1 handle interrupted slot reuse from ERR_DELAY Olga Kornievskaia
@ 2017-04-26 16:42 ` Trond Myklebust
  0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2017-04-26 16:42 UTC (permalink / raw)
  To: anna.schumaker@netapp.com, Trond Myklebust, kolga@netapp.com
  Cc: linux-nfs@vger.kernel.org

T24gU2F0LCAyMDE3LTA0LTIyIGF0IDEyOjMxIC0wNDAwLCBPbGdhIEtvcm5pZXZza2FpYSB3cm90
ZToNCj4gSWYgdGhlIFJQQyBzbG90IHdhcyBpbnRlcnJ1cHRlZCBhbmQgc2VydmVyIHJlcGxp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mUgcGxlYXNlIGNvcnJlY3QgdGhp
cyB0byBjaGVjayByZXMtPnNyX3N0YXR1cyBpbnN0ZWFkPw0KDQo+IMKgCQlpbnRlcnJ1cHRlZCA9
IHRydWU7DQo+IMKgCX0NCj4gwqANCi0tIA0KVHJvbmQgTXlrbGVidXN0DQpMaW51eCBORlMgY2xp
ZW50IG1haW50YWluZXIsIFByaW1hcnlEYXRhDQp0cm9uZC5teWtsZWJ1c3RAcHJpbWFyeWRhdGEu
Y29tDQo=


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-26 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-22 16:31 [PATCH 1/1] NFS4.1 handle interrupted slot reuse from ERR_DELAY Olga Kornievskaia
2017-04-26 16:42 ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).