Commit 3bee991f authored by Zhaoyang Huang's avatar Zhaoyang Huang Committed by Jens Axboe
Browse files

loop: release the lo_work_lock before queue_work



queue_work could spin on wq->cpu_pwq->pool->lock which could lead to
concurrent loop_process_work failed on lo_work_lock contention and
increase the request latency. Remove this combination by moving the
lock release ahead of queue_work.

Signed-off-by: default avatarZhaoyang Huang <zhaoyang.huang@unisoc.com>
Link: https://lore.kernel.org/r/20250207091942.3966756-1-zhaoyang.huang@unisoc.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1ebd4a3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment