Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4AB3C05027 for ; Fri, 17 Feb 2023 03:46:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjBQDqP (ORCPT ); Thu, 16 Feb 2023 22:46:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjBQDqN (ORCPT ); Thu, 16 Feb 2023 22:46:13 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B892583C6; Thu, 16 Feb 2023 19:46:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6CC4BB829AB; Fri, 17 Feb 2023 03:46:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0987C433D2; Fri, 17 Feb 2023 03:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676605570; bh=TzTJFO3XRPwl5gaxtwSPuOLgGN0YCWKHoM8VsGLTZ4c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nwQu5ItXVv6iw2g3RuMyjlxNdiMlhvF0GwEhOPbXFNgtFXnLG45xzvRdR5K+w0J8H dmFBfB5z4h44IbBJbEmgHIRtMrdIUjuAkSgAas25BM795LzcATzcKDsOUa1Cs19SL+ 8kezDdpO1UmCOj2iTyiVwbFidlcTfDD254zKl9cHdYEM5330Uh+LKL2N53da3M1Fy3 m+uGb/LFscKSrWXSkdTtS7r9iJ/JFEB6RfSNJAq+oCBQ2lzDXCG6cRfP1BnYuMgjmS txY0g4LyyIOSPSBFXQTnQFXuB3enClAw9fnM88H5gXmmi5YD+1I7XmSw2Oli5i5O+j gBmREC3K6RI0Q== Date: Thu, 16 Feb 2023 19:46:08 -0800 From: Eric Biggers To: wenyang.linux@foxmail.com Cc: Alexander Viro , Christoph Hellwig , Dylan Yudaken , Jens Axboe , David Woodhouse , Fu Wei , Paolo Bonzini , Michal Nazarewicz , Matthew Wilcox , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] eventfd: use wait_event_interruptible_locked_irq() helper Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2023 at 02:29:48AM +0800, wenyang.linux@foxmail.com wrote: > From: Wen Yang > > 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. > > Signed-off-by: Wen Yang > Cc: Alexander Viro > Cc: Christoph Hellwig > Cc: Dylan Yudaken > Cc: Jens Axboe > Cc: David Woodhouse > Cc: Fu Wei > Cc: Paolo Bonzini > Cc: Michal Nazarewicz > Cc: Matthew Wilcox > Cc: linux-fsdevel@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > fs/eventfd.c | 41 +++++++---------------------------------- > 1 file changed, 7 insertions(+), 34 deletions(-) Reviewed-by: Eric Biggers - Eric