workqueues: flush_work()
cover workqueues: flush_work()
Re-send.
flush_work() was changed to check !list_empty() first. This doesn't matter currently, but this is more correct for flush_work_sync().
The first patch is preparation, but imho makes sense by itself as a cleanup and microoptimization.
Oleg.