Re: [PATCH 5.15] io-wq: max_worker fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/19/21 4:54 PM, Pavel Begunkov wrote:
> On 10/19/21 20:31, Pavel Begunkov wrote:
>> First, fix nr_workers checks against max_workers, with max_worker
>> registration, it may pretty easily happen that nr_workers > max_workers.
>>
>> Also, synchronise writing to acct->max_worker with wqe->lock. It's not
>> an actual problem, but as we don't care about io_wqe_create_worker(),
>> it's better than WRITE_ONCE()/READ_ONCE().
> 
> Jens, can you add
> 
> Reported-by: Beld Zhang <beldzhang@xxxxxxxxx>

Yep, done.

-- 
Jens Axboe




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux