Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp325150rdh; Thu, 23 Nov 2023 05:12:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5jCk2idhWExm1r8lf5avAx+MFNXv0AFSdqHoUoahr5Vk/XV5wkOZgOAQ41YWcBQ3NcDdz X-Received: by 2002:a05:6a20:3d8a:b0:18b:46b4:9333 with SMTP id s10-20020a056a203d8a00b0018b46b49333mr5036484pzi.41.1700745156112; Thu, 23 Nov 2023 05:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700745156; cv=none; d=google.com; s=arc-20160816; b=hYxUjBVlm5kVjK9g33Gb7iHjdhMQpXfljlVckDAbcy8poLOXbYiC0kx7sQtRmpP5qI qtGU13hK1PLzDUhfu9q6oOO2T6BMFSclyKzf8aYTSS2M+Q5gY82ear2QlztdG2X7gZrY 7Dz4pNo3m2WNCAq99sTLpfDZ0xcchRE/DhQJz+oBUAcfaQRJ394G4Rw5op/kc9/GEgeW dFpPeCWekWYBNeo2qlXkZWG1rHCUf5ZhFVEUYaiEF9/XBwpD2I03UOBt7s1Lj+oNTVty 95D2+8wVm8PBsqQtaQc5g2C0kOrf4jGCVVE/zOuwAEY1CUyIvPGYVWZbHZuF977+F9FC aEqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xzA033fdoqXrxfgQaSHInAmlzEcdawZjWPyJDVH/mDo=; fh=6IgHsL6Zn/MUNGCwyWHNnpZSbloQiLknu3s0vX+ohv4=; b=TlDtwJof8/8Fggq6OB8MDPG53sOgQTLB6EndkXZgtqhKut29Kgvb/DU6bUkvNfPpvQ CTWhWi+nQZVSZ31ihiOvdxHXqmRHf4f1+IhoaylFsrAOYtk+bl13eujDxL0ti7O5kkD3 o4ZleKxEC2yd6neEcrFWuxEEq6R/jAPxJfze3RgImFV36dVzsIdXbKU+yIqi+SZARyTY iDzO/4O9his5kxHaIUu+17ZjOLKvxn2COi1EN0wdb9NYRd+/luiIwy75fPo/i0rmH/gF iDBSP/moXpCKv4dMiTtbsEjMKhgDW8jA8bQq8Xi35gkDFNg01aI+3Ey69SOhek8/nHom LJZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nSfg5H2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m30-20020a63581e000000b005c2188ae874si1233302pgb.576.2023.11.23.05.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:12:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nSfg5H2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BB9C781896C5; Thu, 23 Nov 2023 05:12:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345411AbjKWNMK (ORCPT + 99 others); Thu, 23 Nov 2023 08:12:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345271AbjKWNMJ (ORCPT ); Thu, 23 Nov 2023 08:12:09 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28CD31A8 for ; Thu, 23 Nov 2023 05:12:16 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B246C433C7; Thu, 23 Nov 2023 13:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700745135; bh=VBAn7FZcvw1drif9KzTmaabLPVAYO4zX2eeQPqBTwFw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nSfg5H2PW95uhmCyWswaCk18HBzNnUr8lrZC9/jswVOaVEk9Necoc/3PSsg/eWI+c nUSNVQiBVNuTkdJG4ZroseK0fKTuKodiCnTfp5VBFncFM3thhaeXbqdq7/1OyUlFkh hvhoTdxdxKP2qiIgsXRrtgQ8aW/glFRtrG5pk0o8niH7Far3mtrppzle/A5KWCQFN1 0J9D7XnhqZQWKtQ8+7lAsz1DeizPazr+k6Se4xCbJkyOxPi+pXbCyvcnpPCySfoTu/ nxY4zeQuXLH9O0FYHNYyhAuFpYV+0VZCYLV3awl8R2o5zjol3Qy1blkTCXoR/k3lKT V10Lsp2N5sNOQ== Date: Thu, 23 Nov 2023 14:11:56 +0100 From: Christian Brauner To: Zhenyu Wang Cc: linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jan Kara , Vitaly Kuznetsov , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, David Woodhouse , Paul Durrant , Oded Gabbay , Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , Zhi Wang , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Leon Romanovsky , Jason Gunthorpe , Frederic Barrat , Andrew Donnellan , Arnd Bergmann , Greg Kroah-Hartman , Eric Farman , Matthew Rosato , Halil Pasic , Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Tony Krowiak , Jason Herne , Harald Freudenberger , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Diana Craciun , Alex Williamson , Eric Auger , Fei Li , Benjamin LaHaise , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Kirti Wankhede , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fpga@vger.kernel.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-rdma@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-usb@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-aio@kvack.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Jens Axboe , Pavel Begunkov , io-uring@vger.kernel.org Subject: Re: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void Message-ID: <20231123-randlage-instinkt-e458628d2d7c@brauner> References: <20231122-vfs-eventfd-signal-v2-0-bd549b14ce0c@kernel.org> <20231122-vfs-eventfd-signal-v2-1-bd549b14ce0c@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 05:12:34 -0800 (PST) > > + if (!vgpu->msi_trigger) > > + return; > > + eventfd_signal(vgpu->msi_trigger, 1); > > } > > I think it's a little simpler to write as > if (vgpu->msi_trigger) > eventfd_signal(vgpu->msi_trigger, 1); Good point. I folded that suggestion into the patch.