]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
io-wq: move nr_running and worker_refs out of wqe->lock protection
authorHao Xu <haoxu@linux.alibaba.com>
Tue, 10 Aug 2021 12:55:54 +0000 (20:55 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:43 +0000 (13:10 -0600)
commit79dca1846fe979304ad0b998e56b20326e2e5a72
treefeacca1b7a5b7a6d4a90e2aa9940736545e0c682
parentec3c3d0f3a271b5c7422449262970e7eb98f2126
io-wq: move nr_running and worker_refs out of wqe->lock protection

We don't need to protect nr_running and worker_refs by wqe->lock, so
narrow the range of raw_spin_lock_irq - raw_spin_unlock_irq

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20210810125554.99229-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c