diff options
Diffstat (limited to 'kernel/async.c')
| -rw-r--r-- | kernel/async.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/async.c b/kernel/async.c index 9d3118384858..a1d585c351d6 100644 --- a/kernel/async.c +++ b/kernel/async.c | |||
| @@ -196,6 +196,9 @@ static async_cookie_t __async_schedule(async_func_ptr *ptr, void *data, struct a | |||
| 196 | atomic_inc(&entry_count); | 196 | atomic_inc(&entry_count); |
| 197 | spin_unlock_irqrestore(&async_lock, flags); | 197 | spin_unlock_irqrestore(&async_lock, flags); |
| 198 | 198 | ||
| 199 | /* mark that this task has queued an async job, used by module init */ | ||
| 200 | current->flags |= PF_USED_ASYNC; | ||
| 201 | |||
| 199 | /* schedule for execution */ | 202 | /* schedule for execution */ |
| 200 | queue_work(system_unbound_wq, &entry->work); | 203 | queue_work(system_unbound_wq, &entry->work); |
| 201 | 204 | ||
