Re: [PATCH 1/1] io_uring: clean up tctx_task_work()

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

 



On 8/10/21 10:53 AM, Pavel Begunkov wrote:
> After recent fixes, tctx_task_work() always does proper spinlocking
> before looking into ->task_list, so now we don't need atomics for
> ->task_state, replace it with non-atomic task_running using the critical
> section.
> 
> Tide it up, combine two separate block with spinlocking, and always try
> to splice in there, so we do less locking when new requests are arriving
> during the function execution.

Applied for 5.15, thanks.

-- 
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