]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/async.c
module, async: async_synchronize_full() on module init iff async is used
[karo-tx-linux.git] / kernel / async.c
index 9d31183848582ca8da812d70d2d68364ff898f1d..a1d585c351d663f3cc64f0f874b0a38562797dc7 100644 (file)
@@ -196,6 +196,9 @@ static async_cookie_t __async_schedule(async_func_ptr *ptr, void *data, struct a
        atomic_inc(&entry_count);
        spin_unlock_irqrestore(&async_lock, flags);
 
+       /* mark that this task has queued an async job, used by module init */
+       current->flags |= PF_USED_ASYNC;
+
        /* schedule for execution */
        queue_work(system_unbound_wq, &entry->work);