In nfsrv_rcv(), don't reacquire the nfs server lock until after
nfs_realign() has been called, as it may sleep waiting on memory allocation. Reported by: simon
This commit is contained in:
parent
252acbdc5f
commit
35b5232a25
@ -506,8 +506,8 @@ nfsrv_rcv(struct socket *so, void *arg, int waitflag)
|
||||
NFSD_LOCK();
|
||||
continue;
|
||||
}
|
||||
NFSD_LOCK();
|
||||
nfs_realign(&mp, 10 * NFSX_UNSIGNED);
|
||||
NFSD_LOCK();
|
||||
rec->nr_address = nam;
|
||||
rec->nr_packet = mp;
|
||||
STAILQ_INSERT_TAIL(&slp->ns_rec, rec, nr_link);
|
||||
|
Loading…
Reference in New Issue
Block a user