diff options
| author | Tejun Heo <[email protected]> | 2011-04-05 16:01:44 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2011-05-20 11:54:46 +0000 |
| commit | 9c5a2ba70251ecaab18c7a83e38b3c620223476c (patch) | |
| tree | ece2c035b761af1332ea027f32443a6d05b16bc9 /net/tipc/node.c | |
| parent | workqueue: remove cancel_rearming_delayed_work[queue]() (diff) | |
| download | kernel-9c5a2ba70251ecaab18c7a83e38b3c620223476c.tar.gz kernel-9c5a2ba70251ecaab18c7a83e38b3c620223476c.zip | |
workqueue: separate out drain_workqueue() from destroy_workqueue()
There are users which want to drain workqueues without destroying it.
Separate out drain functionality from destroy_workqueue() into
drain_workqueue() and make it accessible to workqueue users.
To guarantee forward-progress, only chain queueing is allowed while
drain is in progress. If a new work item which isn't chained from the
running or pending work items is queued while draining is in progress,
WARN_ON_ONCE() is triggered.
Signed-off-by: Tejun Heo <[email protected]>
Cc: James Bottomley <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
