Call nfsm_clget_nolock() instead of nfsm_clget() when holding the NFS

subsystem lock to avoid tripping over an assertion regarding whether
the lock is held or not.  This is likely to be the cause of a panic
tripped over by Andrea Campi.
This commit is contained in:
Robert Watson 2004-05-27 20:34:04 +00:00
parent a607c5e4cb
commit 9a7563cf2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129785

View File

@ -3845,7 +3845,7 @@ nfsrv_readdirplus(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
xfer = nlen;
cp = dp->d_name;
while (xfer > 0) {
nfsm_clget;
nfsm_clget_nolock;
if ((bp + xfer) > be)
tsiz = be - bp;
else