Re: [RESEND PATCH v2] eventfd: use wait_event_interruptible_locked_irq() helper

From: Christian Brauner
Date: Thu Apr 06 2023 - 05:09:51 EST



On Thu, 06 Apr 2023 03:20:02 +0800, wenyang.linux@xxxxxxxxxxx wrote:
> wait_event_interruptible_locked_irq was introduced by commit 22c43c81a51e
> ("wait_event_interruptible_locked() interface"), but older code such as
> eventfd_{write,read} still uses the open code implementation.
> Inspired by commit 8120a8aadb20
> ("fs/timerfd.c: make use of wait_event_interruptible_locked_irq()"), this
> patch replaces the open code implementation with a single macro call.
>
> [...]

I ran LTP with ./runltp -f syscalls -s eventfd passes and aligns with what was
done for timerfd.

Applied, thanks!

tree: git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git
branch: fs.misc
[1/1] eventfd: use wait_event_interruptible_locked_irq() helper
commit: 113348a44b8622b497fb884f41c8659481ad0b04