mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC dfb33cb0ef:
Allocating the LinuxKPI current structure from a software interrupt thread must be done using the M_NOWAIT flag after1ae20f7c70. Sponsored by: Mellanox Technologies // NVIDIA Networking (cherry picked from commitdfb33cb0ef)
This commit is contained in:
parent
093204e2d0
commit
3e4fe9ca73
1 changed files with 8 additions and 2 deletions
|
|
@ -1913,9 +1913,15 @@ linux_timer_callback_wrapper(void *context)
|
|||
{
|
||||
struct timer_list *timer;
|
||||
|
||||
linux_set_current(curthread);
|
||||
|
||||
timer = context;
|
||||
|
||||
if (linux_set_current_flags(curthread, M_NOWAIT)) {
|
||||
/* try again later */
|
||||
callout_reset(&timer->callout, 1,
|
||||
&linux_timer_callback_wrapper, timer);
|
||||
return;
|
||||
}
|
||||
|
||||
timer->function(timer->data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue