linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [BUG] NFS in 2.4.20-pre6+ stalls
@ 2002-09-25 12:41 Trond Myklebust
  2002-09-25 15:30 ` Richard Gooch
  0 siblings, 1 reply; 7+ messages in thread
From: Trond Myklebust @ 2002-09-25 12:41 UTC (permalink / raw)
  To: Richard Gooch; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

>   Hi, all. Just noticed this with 2.4.20-pre6 (and -pre7): NFS write
> sometimes (usually) stalls for minutes at a time. This problem wasn't

Richard,
  Does the appended patch make a difference?

Cheers,
  Trond


[-- Attachment #2: resend.dif --]
[-- Type: text/plain, Size: 910 bytes --]

--- linux/net/sunrpc/xprt.c.orig	Fri Aug 30 20:16:17 2002
+++ linux/net/sunrpc/xprt.c	Tue Sep 24 00:08:59 2002
@@ -171,10 +171,10 @@
 
 	if (xprt->snd_task)
 		return;
-	if (!xprt->nocong && RPCXPRT_CONGESTED(xprt))
-		return;
 	task = rpc_wake_up_next(&xprt->resend);
 	if (!task) {
+		if (!xprt->nocong && RPCXPRT_CONGESTED(xprt))
+			return;
 		task = rpc_wake_up_next(&xprt->sending);
 		if (!task)
 			return;
@@ -1013,7 +1013,6 @@
 		}
 		rpc_inc_timeo(&task->tk_client->cl_rtt);
 		xprt_adjust_cwnd(req->rq_xprt, -ETIMEDOUT);
-		__xprt_put_cong(xprt, req);
 	}
 	req->rq_nresend++;
 
@@ -1150,10 +1149,7 @@
 		req->rq_bytes_sent = 0;
 	}
  out_release:
-	spin_lock_bh(&xprt->sock_lock);
-	__xprt_release_write(xprt, task);
-	__xprt_put_cong(xprt, req);
-	spin_unlock_bh(&xprt->sock_lock);
+	xprt_release_write(xprt, task);
 	return;
  out_receive:
 	dprintk("RPC: %4d xmit complete\n", task->tk_pid);



^ permalink raw reply	[flat|nested] 7+ messages in thread
* [BUG] NFS in 2.4.20-pre6+ stalls
@ 2002-09-16 22:54 Richard Gooch
  2002-09-16 23:10 ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Gooch @ 2002-09-16 22:54 UTC (permalink / raw)
  To: linux-kernel

  Hi, all. Just noticed this with 2.4.20-pre6 (and -pre7): NFS write
sometimes (usually) stalls for minutes at a time. This problem wasn't
there on 2.4.19. I've noticed this when writing a files around 1 MiB
or so (some a bit larger, some a bit smaller). It makes NFS almost
unusable. I've appended the kernel logs which come, at no extra
charge, with the problem. On the server, I see partial files (integral
number of wsize= blocks) during the stall. Eventually, the client
seems to recover and the rest of the file is written. The writing
application is in TASK_INTERRUPTIBLE state.

				Regards,

					Richard....
Permanent: rgooch@atnf.csiro.au
Current:   rgooch@ras.ucalgary.ca
===============================================================================
nfs: task 125 can't get a request slot
nfs: task 126 can't get a request slot
nfs: task 127 can't get a request slot
nfs: task 128 can't get a request slot
nfs: task 129 can't get a request slot
nfs: task 130 can't get a request slot
nfs: task 131 can't get a request slot
nfs: task 132 can't get a request slot
nfs: task 133 can't get a request slot
nfs: task 134 can't get a request slot
nfs: task 135 can't get a request slot
nfs: task 136 can't get a request slot
nfs: task 137 can't get a request slot
nfs: task 138 can't get a request slot
nfs: task 139 can't get a request slot
nfs: task 140 can't get a request slot
nfs: task 141 can't get a request slot
nfs: task 142 can't get a request slot
nfs: task 143 can't get a request slot
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK
nfs: server fileserver OK

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

end of thread, other threads:[~2002-09-28 22:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 12:41 [BUG] NFS in 2.4.20-pre6+ stalls Trond Myklebust
2002-09-25 15:30 ` Richard Gooch
2002-09-26 11:29   ` Trond Myklebust
2002-09-28 22:43     ` Richard Gooch
  -- strict thread matches above, loose matches on Subject: below --
2002-09-16 22:54 Richard Gooch
2002-09-16 23:10 ` Alan Cox
2002-09-17 18:41   ` Bill Davidsen

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).