When upcalling from a socket in soisconnected() for an accept filter,

call with flag M_DONTWAIT rather than M_TRYWAIT, as we don't want to
do blocking memory allocation (etc) in the netisr.

MFC after:	3 days
This commit is contained in:
Robert Watson 2005-03-07 13:50:16 +00:00
parent 40c20505a8
commit 9bfb7389bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143245
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ soisconnected(so)
so->so_rcv.sb_flags |= SB_UPCALL;
so->so_options &= ~SO_ACCEPTFILTER;
SOCK_UNLOCK(so);
so->so_upcall(so, so->so_upcallarg, M_TRYWAIT);
so->so_upcall(so, so->so_upcallarg, M_DONTWAIT);
}
return;
}

View File

@ -143,7 +143,7 @@ soisconnected(so)
so->so_rcv.sb_flags |= SB_UPCALL;
so->so_options &= ~SO_ACCEPTFILTER;
SOCK_UNLOCK(so);
so->so_upcall(so, so->so_upcallarg, M_TRYWAIT);
so->so_upcall(so, so->so_upcallarg, M_DONTWAIT);
}
return;
}