On Sun, 6 Feb 2022 17:52:38 +0800, Hao Xu wrote: > wqe->lock is abused, it now protects acct->work_list, hash stuff, > nr_workers, wqe->free_list and so on. Lets first get the work_list out > of the wqe-lock mess by introduce a specific lock for work list. This > is the first step to solve the huge contension between work insertion > and work consumption. > good thing: > - split locking for bound and unbound work list > - reduce contension between work_list visit and (worker's)free_list. > > [...] Applied, thanks! [1/3] io-wq: decouple work_list protection from the big wqe->lock (no commit info) [2/3] io-wq: reduce acct->lock crossing functions lock/unlock (no commit info) [3/3] io-wq: use IO_WQ_ACCT_NR rather than hardcoded number (no commit info) Best regards, -- Jens Axboe