summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-04-01 11:23:31 -0700
committerTejun Heo <tj@kernel.org>2013-04-01 11:23:31 -0700
commitbc0caf099d9df4dd0fad24992b043b40541f4200 (patch)
treedddcccaf93af1eacd1606aadb06105e1a8f5ee11 /ipc
parentb5927605478b740d73192f587e458de1632106e8 (diff)
downloadlinux-bc0caf099d9df4dd0fad24992b043b40541f4200.tar.bz2
workqueue: fix race condition in unbound workqueue free path
8864b4e59 ("workqueue: implement get/put_pwq()") implemented pwq (pool_workqueue) refcnting which frees workqueue when the last pwq goes away. It determined whether it was the last pwq by testing wq->pwqs is empty. Unfortunately, the test was done outside wq->mutex and multiple pwq release could race and try to free wq multiple times leading to oops. Test wq->pwqs emptiness while holding wq->mutex. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions