diff options
author | Tejun Heo <tj@kernel.org> | 2010-07-02 10:03:51 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-07-02 10:03:51 +0200 |
commit | d313dd85ad846bc768d58e9ceb28588f917f4c9a (patch) | |
tree | b61b92f270b9fedc577e8196d605c93d695052d4 /include/linux/libata.h | |
parent | a1e453d2799760ecf2e09ecd45b80edbe7ff540e (diff) | |
download | linux-d313dd85ad846bc768d58e9ceb28588f917f4c9a.tar.gz linux-d313dd85ad846bc768d58e9ceb28588f917f4c9a.tar.bz2 linux-d313dd85ad846bc768d58e9ceb28588f917f4c9a.zip |
workqueue: fix worker management invocation without pending works
When there's no pending work to do, worker_thread() goes back to sleep
after waking up without checking whether worker management is
necessary. This means that idle worker exit requests can be ignored
if the gcwq stays empty.
Fix it by making worker_thread() always check whether worker
management is necessary before going to sleep.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/libata.h')
0 files changed, 0 insertions, 0 deletions