Re: [PATCH 5.14] io_uring: fix ctx-exit io_rsrc_put_work() deadlock

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

 



On 8/9/21 7:44 PM, Pavel Begunkov wrote:
> __io_rsrc_put_work() might need ->uring_lock, so nobody should wait for
> rsrc nodes holding the mutex. However, that's exactly what
> io_ring_ctx_free() does with io_wait_rsrc_data().
> 
> Split it into rsrc wait + dealloc, and move the first one out of the
> lock.

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