Re: [PATCH] io_uring: unregister eventfd while holding lock when freeing ring ctx

From: Jens Axboe
Date: Mon Feb 07 2022 - 08:54:59 EST


On 2/7/22 3:50 AM, Usama Arif wrote:
> This is because ctx->io_ev_fd is rcu_dereference_protected using
> ctx->uring_lock in io_eventfd_unregister. Not locking the function
> resulted in suspicious RCU usage reported by kernel test robot.

I'll fold this in with the change, thanks.

--
Jens Axboe