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:
rwatson 2007-04-15 15:50:50 +00:00
parent 252acbdc5f
commit 35b5232a25

View File

@ -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);