From owner-freebsd-bugs Fri Apr 18 05:20:46 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA29290 for bugs-outgoing; Fri, 18 Apr 1997 05:20:46 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id FAA29285 for ; Fri, 18 Apr 1997 05:20:42 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA09508; Fri, 18 Apr 1997 08:20:04 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Fri, 18 Apr 1997 08:20 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.3/8.7.3) with ESMTP id HAA12554; Fri, 18 Apr 1997 07:51:03 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.3/8.6.9) id HAA07503; Fri, 18 Apr 1997 07:57:44 -0400 (EDT) Date: Fri, 18 Apr 1997 07:57:44 -0400 (EDT) From: Thomas David Rivers Message-Id: <199704181157.HAA07503@lakes.water.net> To: ponds!labinfo.iet.unipi.it!luigi, ponds!lakes.water.net!rivers Subject: Re: kern/3304: NFS V2 readdir hangs Cc: ponds!freefall.freebsd.org!freebsd-bugs Content-Type: text Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > nfs_reply(). While I don't understand the code very well, it seems > > to me that the initialization in line 933 should be moved outside > > the retry loop, before line 923. Otherwise the locking cannot possibly > > work because repeated calls to nfs_reply() use the same parameters. > > Well - what good eyes you have :-) I didn't notice that... > > > > > > Can someone (Dave ?) try the above fix and see if it works ? > > I'll give it a try later this morning (my time, EST ) and let you know. Ok - I've tried it out... I move the initialization of rep->r_mrep to be before the tryagain: label, just as the other initializations were... Unfortunately; I still experience the hang... This problem seems to be particular to readdir() - I'm wondering if readdir() is somehow doing an soreceive() without going through nfs_reply(); i.e. avoiding the nfs_rcvlock() somehow... - Dave Rivers -