Fix a regression from the last revision - don't edit the ns_rec list while
not holding the lock.
This commit is contained in:
parent
88f25023dc
commit
0d8563d31e
@ -655,9 +655,11 @@ nfsrv_getstream(struct nfssvc_sock *slp, int waitflag)
|
||||
nfs_realign(&slp->ns_frag, 10 * NFSX_UNSIGNED);
|
||||
rec->nr_address = NULL;
|
||||
rec->nr_packet = slp->ns_frag;
|
||||
STAILQ_INSERT_TAIL(&slp->ns_rec, rec, nr_link);
|
||||
}
|
||||
NFSD_LOCK();
|
||||
STAILQ_INSERT_TAIL(&slp->ns_rec, rec, nr_link);
|
||||
} else {
|
||||
NFSD_LOCK();
|
||||
}
|
||||
if (!rec) {
|
||||
m_freem(slp->ns_frag);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user