mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Use M_WAITOK rather than M_NOWAIT when creating taskqueues via the
TASKQUEUE_DEFINE macros. All the places that use these macros to create taskqueues assume that the operation succeeds. MFC after: 1 week
This commit is contained in:
parent
0071ee5ede
commit
5e86ca0084
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ static void \
|
|||
taskqueue_define_##name(void *arg) \
|
||||
{ \
|
||||
taskqueue_##name = \
|
||||
taskqueue_create(#name, M_NOWAIT, (enqueue), (context)); \
|
||||
taskqueue_create(#name, M_WAITOK, (enqueue), (context)); \
|
||||
init; \
|
||||
} \
|
||||
\
|
||||
|
|
@ -120,7 +120,7 @@ static void \
|
|||
taskqueue_define_##name(void *arg) \
|
||||
{ \
|
||||
taskqueue_##name = \
|
||||
taskqueue_create_fast(#name, M_NOWAIT, (enqueue), \
|
||||
taskqueue_create_fast(#name, M_WAITOK, (enqueue), \
|
||||
(context)); \
|
||||
init; \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Reference in a new issue