aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/async.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/async.c')
-rw-r--r--kernel/async.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/async.c b/kernel/async.c
index 97373380c9e7..64cc916299a5 100644
--- a/kernel/async.c
+++ b/kernel/async.c
@@ -206,7 +206,9 @@ EXPORT_SYMBOL_GPL(async_schedule_special);
206 206
207void async_synchronize_full(void) 207void async_synchronize_full(void)
208{ 208{
209 async_synchronize_cookie(next_cookie); 209 do {
210 async_synchronize_cookie(next_cookie);
211 } while (!list_empty(&async_running) || !list_empty(&async_pending));
210} 212}
211EXPORT_SYMBOL_GPL(async_synchronize_full); 213EXPORT_SYMBOL_GPL(async_synchronize_full);
212 214