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 3CC7FC636D6 for ; Thu, 16 Feb 2023 13:29:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbjBPN3b (ORCPT ); Thu, 16 Feb 2023 08:29:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjBPN3a (ORCPT ); Thu, 16 Feb 2023 08:29:30 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B416564AE; Thu, 16 Feb 2023 05:29:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HCrOBvUuDVbVO164MMNUpzywaZDP+3tqMzNw5S/Fbvk=; b=XY5fGjnGjRgbK65Y8xa+WJsmVu T8L7E3t67b/PhqUl8OsQtLP/K5jo192mFLaGcAixt7/mlKLFZeI/10rh98BdGVn5wGZhItQuaxmB5 F0Xxy15rMB1sQxrG31MkSRB+EmerQpDVzsHiULeTDkwhulw5PKNTNsMQPAS6jeEqu3jk85oIho1K+ 0q8Cz65HpCPdi2A6dOeJKOTvus2JhaZDB3IKzvozRUhckVyuOPT9XigBu6Iw3qHXWKhGkoOuTZCPM YD3pyH5rT7Ta+sqCXQ4eZjjvJ/PsLgwXwnhAj9GfJaDarg3k8nPzdgeK9QHePkMPBnYbDMh4bNuZM NxGQSWhA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSeJo-008Rc2-Rp; Thu, 16 Feb 2023 13:29:00 +0000 Date: Thu, 16 Feb 2023 13:29:00 +0000 From: Matthew Wilcox To: wenyang.linux@foxmail.com Cc: Alexander Viro , Christoph Hellwig , Dylan Yudaken , Jens Axboe , David Woodhouse , Fu Wei , Paolo Bonzini , Michal Nazarewicz , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 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 Thu, Feb 16, 2023 at 09:17:39PM +0800, wenyang.linux@foxmail.com wrote: > + res = wait_event_interruptible_locked_irq( > + ctx->wqh, ULLONG_MAX - ctx->count > ucnt) ? > + -ERESTARTSYS : sizeof(ucnt); You've broken the line here in a weird way. I'd've done it as: res = wait_event_interruptible_locked_irq(ctx->wqh, ULLONG_MAX - ctx->count > ucnt) ? -ERESTARTSYS : sizeof(ucnt)); ... also the patch you've sent here doesn't even compile. Have you tested it?