mirror of
https://github.com/opnsense/src.git
synced 2026-03-31 06:55:18 -04:00
Allocating the LinuxKPI current structure from a software interrupt thread
must be done using the M_NOWAIT flag after 1ae20f7c70 .
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
This commit is contained in:
parent
6eb60f5b7f
commit
dfb33cb0ef
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