mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
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:
parent
a607c5e4cb
commit
9a7563cf2d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129785
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue