From patchwork Wed Nov 22 12:48:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 16930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1296041vqb; Wed, 22 Nov 2023 04:49:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmV8T8kjv4TTPt11QEPkdvaBLLefSL7gD+4Qd7Zful2eIrP3Jt8Qyn8Ry7X6K4qh+47R28 X-Received: by 2002:a17:902:b488:b0:1ce:63f2:e96f with SMTP id y8-20020a170902b48800b001ce63f2e96fmr1912665plr.22.1700657378339; Wed, 22 Nov 2023 04:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700657378; cv=none; d=google.com; s=arc-20160816; b=QYedhtNN/Tf7BZvxtYersNIciH9SJQd+EmQW85JpWHTqxuyy7g9MvyGYjOdLhDanfi PMB8LidoUcAEMPYSfLU2nUFvkq6KDqVf9TR+HngZg7bEcqKinJQ43CEvRTC+cC+vwW3T HfBLh9Natx+kSliIuNVW1cZ4Ou52QFgs9psijaNSKn4r5wOntL0zwGGzNZ32jhnrhXrE Ol5e/LFZObtPOt+YJMH1m/ZKFkz6BXcjpqKuHMBOiKrZs4py2QIorx6Wnn5kDnkde7vk uwrl0ltw15xc9JMtLOLvZPHVqkIhOTjbvrxau4ocQYcosBV3i0jYgzJ3lG8ExVHDfu4x qeAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=6OXBSUL+nsBWDSWY/Q2r+0obUk1WW2944LvuwrKFOOg=; fh=I5U8zYy/bbGnvwdMJgV6y8FQ3Pq1OaMal5RdIX6DAm8=; b=cDlLkGALAV02rNTEKkuO+/cUXCHbXHuXB/oy5ZRrONg739Kc32qYyX/BD3Fg8xvZfW eQrRA+eLuaE8WT+1V0fD42/jsJFimmpVgIraPXFE1Hhm/XrdBZ40rdETFZ5FMosUHyrq HKXZklDuBX3WGt8Ib4isRg2R8IGPKOVnRl/sC0mGFQ1ZAJwEG+Xb3drk8J9S1znwLyaf dRcyoom3WxHLx3ko4vGahZ05fBcpN6vBwxFR1ws98Wz2LLlnuBSG0NMOxmcOasn3EfiI qp/DZ1trX195G11V323zXzpEYvZf6X/Tgw0+9sdce04wSSjkcss0cm3r/BPVt56MiG7Z awuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Tc/2BAOy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u11-20020a170903124b00b001cc2bb98bdasi4543468plh.448.2023.11.22.04.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 04:49:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Tc/2BAOy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 4074081B5D00; Wed, 22 Nov 2023 04:49:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343834AbjKVMtH (ORCPT + 99 others); Wed, 22 Nov 2023 07:49:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343669AbjKVMtF (ORCPT ); Wed, 22 Nov 2023 07:49:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D857812C for ; Wed, 22 Nov 2023 04:49:01 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66B8AC433C7; Wed, 22 Nov 2023 12:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700657341; bh=6OXBSUL+nsBWDSWY/Q2r+0obUk1WW2944LvuwrKFOOg=; h=From:Subject:Date:To:Cc:From; b=Tc/2BAOyq/CL424TPKJ+8ok4iD2CSlMj4gj7I88R2wR3SRpoXrwpPP4CcDv0rCy4Q imtDsj4NMmiBNZozdVII4r1Tu0lKWkktCHU3pI4LzAIFYMYIaMFpbulm6tUMVwguK4 qTlrJ2u4/DeMIiXbQyzfXkH/WxJG3G65JVkRZ5lf6r4VzUJTQXH/UjyJJ0V5cZAl2s w/spDO6VPLhtfPliBsbbdWVAXUjht3ojtCQDl0LfCWNNwph8Zdy7ZX7mLHL0no3jWG z8IdhyFNF5VEPzmpKIFkxea1CvPQqUVZAxIi/ByG3Lv1c90SwdjDEIcrL99R5YQgIg fP3gmG5BvwYWQ== From: Christian Brauner Subject: [PATCH v2 0/4] eventfd: simplify signal helpers Date: Wed, 22 Nov 2023 13:48:21 +0100 Message-Id: <20231122-vfs-eventfd-signal-v2-0-bd549b14ce0c@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJX4XWUC/32OTQ6CMBBGr0K6dkhbYpu48h6GRX8GaMRiZkijI dzdwgFcvsV737cJRkrI4tZsgrAkTkuuoC+NCJPLI0KKlYWWupNWdVAGBiyY1yECpzG7GaSXURn rosEgqvgmHNLnjD76yt4xgieXw3SkXo5XpLaY1gIFdRhT4nWh7/miqMP7O1gUSLBDdCZco1ba3 59IGed2oVH0+77/ALQAWw7XAAAA To: linux-fsdevel@vger.kernel.org Cc: 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 , Zhenyu Wang , 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 , Christian Brauner , 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 X-Mailer: b4 0.13-dev-26615 X-Developer-Signature: v=1; a=openpgp-sha256; l=564; i=brauner@kernel.org; h=from:subject:message-id; bh=6OXBSUL+nsBWDSWY/Q2r+0obUk1WW2944LvuwrKFOOg=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaTG/lhzPFmKbc7Vgs4lut/eP1hw9bOuxtyeI9s4tYwWe yZZxby53lHKwiDGxSArpsji0G4SLrecp2KzUaYGzBxWJpAhDFycAjCRf4IM/8NUuv3TH0hJOWz8 c65PTujVFLaLGrq6vFP/9yxi7X77UInhf0113erTobU10gp/tt37unHeHp8P0ZHTLq5c7sWdN// 2D04A X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 04:49:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783268511477175217 X-GMAIL-MSGID: 1783268511477175217 Hey everyone, This simplifies the eventfd_signal() and eventfd_signal_mask() helpers significantly. They can be made void and not take any unnecessary arguments. I've added a few more simplifications based on Sean's suggestion. Signed-off-by: Christian Brauner Changes in v2: - further simplify helpers - Link to v1: https://lore.kernel.org/r/20230713-vfs-eventfd-signal-v1-0-7fda6c5d212b@kernel.org Reviewed-by: Jens Axboe --- --- base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86 change-id: 20230713-vfs-eventfd-signal-0b0d167ad6ec