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:
parent
40c20505a8
commit
9bfb7389bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143245
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user