FIx for a bug in the change that made nfs_timer() MPSAFE. We need to
grab Giant before calling pru_send() (if running with mpsafenet = 0). Found by: Jeremie Le Hen. Fixed by: Maxime Henrion
This commit is contained in:
parent
4fb48d10b0
commit
250614c5ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148448
@ -1255,12 +1255,14 @@ nfs_timer(void *arg)
|
||||
*/
|
||||
rep->r_flags |= R_REXMIT_INPROG;
|
||||
mtx_unlock(&nfs_reqq_mtx);
|
||||
NET_LOCK_GIANT();
|
||||
if ((nmp->nm_flag & NFSMNT_NOCONN) == 0)
|
||||
error = (*so->so_proto->pr_usrreqs->pru_send)
|
||||
(so, 0, m, NULL, NULL, curthread);
|
||||
else
|
||||
error = (*so->so_proto->pr_usrreqs->pru_send)
|
||||
(so, 0, m, nmp->nm_nam, NULL, curthread);
|
||||
NET_UNLOCK_GIANT();
|
||||
mtx_lock(&nfs_reqq_mtx);
|
||||
rep->r_flags &= ~R_REXMIT_INPROG;
|
||||
wakeup((caddr_t)&rep->r_flags);
|
||||
|
Loading…
Reference in New Issue
Block a user