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

From: Jens Axboe
Date: Wed Apr 05 2023 - 15:27:05 EST


On 4/5/23 1:20 PM, wenyang.linux@xxxxxxxxxxx wrote:
> From: Wen Yang <wenyang.linux@xxxxxxxxxxx>
>
> 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.
>
> No functional change intended.

Looks pretty reasonable to me. How did you test it?

--
Jens Axboe