Commit 3e4fe9ca authored by Hans Petter Selasky's avatar Hans Petter Selasky
Browse files

MFC dfb33cb0:

Allocating the LinuxKPI current structure from a software interrupt thread
must be done using the M_NOWAIT flag after 1ae20f7c .

Sponsored by:	Mellanox Technologies // NVIDIA Networking

(cherry picked from commit dfb33cb0)
parent 093204e2
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment