diff options
| author | Christoph Hellwig <hch@sgi.com> | 2002-10-01 00:28:53 -0700 |
|---|---|---|
| committer | Christoph Hellwig <hch@sgi.com> | 2002-10-01 00:28:53 -0700 |
| commit | 5d8f0a439005d18c115f40a034141b7f237a08c8 (patch) | |
| tree | 2e815794194cf177b8c311453ff08421d19cb29f /kernel | |
| parent | fec6fe9c2a00b38f34594998faa297c124ab88b5 (diff) | |
[PATCH] workqueue flush on destroy
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 5fab2cd1933f..7adce746f426 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -317,6 +317,8 @@ void destroy_workqueue(struct workqueue_struct *wq) struct cpu_workqueue_struct *cwq; int cpu; + flush_workqueue(wq); + for (cpu = 0; cpu < NR_CPUS; cpu++) { if (!cpu_online(cpu)) continue; |
