diff options
author | Lai Jiangshan <laijs@linux.alibaba.com> | 2020-05-29 06:59:02 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2020-05-29 10:25:23 -0400 |
commit | b8f06b0444ec146e3ae98caac8039c77e5308ce2 (patch) | |
tree | 2b0337a366ac25868dc4043f1955fc32dc51e9a8 /kernel | |
parent | 4f3f4cf388f8fda7ee8ea7c6af0ff0ebb2d05fe4 (diff) | |
download | linux-stable-b8f06b0444ec146e3ae98caac8039c77e5308ce2.tar.gz linux-stable-b8f06b0444ec146e3ae98caac8039c77e5308ce2.tar.bz2 linux-stable-b8f06b0444ec146e3ae98caac8039c77e5308ce2.zip |
workqueue: remove useless unlock() and lock() in series
This is no point to unlock() and then lock() the same mutex
back to back.
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 6feefc65d332..c667ca5aed61 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -4403,13 +4403,11 @@ void destroy_workqueue(struct workqueue_struct *wq) raw_spin_unlock_irq(&pwq->pool->lock); } mutex_unlock(&wq->mutex); - mutex_unlock(&wq_pool_mutex); /* * wq list is used to freeze wq, remove from list after * flushing is complete in case freeze races us. */ - mutex_lock(&wq_pool_mutex); list_del_rcu(&wq->list); mutex_unlock(&wq_pool_mutex); |