Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1014321iob; Fri, 13 May 2022 19:40:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZmbS2AqaqHBQD3ISh44uYJOOylah8to5e+y/pqYzXIK+Auq10La9W8m96kpGovKPZh1bx X-Received: by 2002:a05:600c:ad1:b0:38c:8bf6:7d6b with SMTP id c17-20020a05600c0ad100b0038c8bf67d6bmr7177553wmr.84.1652496025103; Fri, 13 May 2022 19:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652496025; cv=none; d=google.com; s=arc-20160816; b=viHJ7rMJSoXNz/uy505iU5dWOUksO+u1H1WvC1ZOylyZ9W5ubNu1ZIJT5oU2D6jn17 SLBSnnHiDNIOsm9a4g5r1VR/WW3e1u6ok8hW8J3lSzy5CFpbEOWab1UU6xjkW03UFRdy lTj7R0r83ECMylVKhq7eUSR4WBKIMtAMENDsIQL97SIlSYELc6egNTadv4pk0LvJImqT d4Npp7iWNZwQA/Uw3mKvAm0fIVstUCJnOBW0W0BuF/u1OjpVGyQutnA448+QU32V+N8r xyZSMyJo8fQP0QzbAUoahNJoGTQmJ2jv/1o2/6wz/Kx+NkQCFWpISMRyUdFurej3rIQe 5NUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jJfkC5Ggl9PBSX8dbtET+FNDoEEEikJyMuvYPYbye6c=; b=TLmiYeP8IBOl62RL61F1G9xGf5ZjQDNXL5u7pZdI0KFrwlR5o6Bip/yEK71J7LO1ag tx+6oPS3Ae6z0a/Z5ZpDQG3TACKZm4CPm2D/BjajBz8mABByw4MB98RNGEggC4wHIAYT o3gYFvVGtWCCatS3CsVKzkXM78LFn9rNs0DsTMz39Lozc8JcSrjIMVAMrsKjzZepjnXG 2vHo+IK6f1II00UXHme0TH3jsCKvN4NAkZbnG93FjNY+Yaau0qYNFnJnpfF/6uQpszz/ bvg8sVq7B5Dp2yq2vYdW6UsskgJxZl5KywbFxLAulHLQxxZLGL8dd/Yx9BcN5RFNfAV7 SaQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="OvNNgZ0/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h10-20020a056000000a00b0020acdeacacbsi3610527wrx.743.2022.05.13.19.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:40:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="OvNNgZ0/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 76ACA5013C5; Fri, 13 May 2022 17:51:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359748AbiEMApK (ORCPT + 99 others); Thu, 12 May 2022 20:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243156AbiEMApI (ORCPT ); Thu, 12 May 2022 20:45:08 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C51AF28B69A; Thu, 12 May 2022 17:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jJfkC5Ggl9PBSX8dbtET+FNDoEEEikJyMuvYPYbye6c=; b=OvNNgZ0/ROFK3Q4PvFu625p3nm 9fKSysyDUF+Y5nlb1vJz2fWZJDBEkccJWNiPHKu5IEgAvg/dyxhy161XDrM1rTbxmR1dptd9IJIwM yUA+GFBbkL3lZ/5cMuoKZqGJJ1EwZZVvzJ8KzX2DkApp0DFEEVJXDUZBdAtLcaeZWFgvv2u+tMfoj L+iNt1GOVWrLYL7dlN9hgjE7+XwqaZ60A3rtXoA/K5HZGUEGKFz/HSyT1EcSTYjno+suprdK03k4/ oqtRrlt8q27FiysVwrpRNqtKhRX1bj6jtL52B6WCo/eoCpavpVYK6dJokI+fW5gfAcXbh8O2vLRTd nMrQiGFA==; Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1npJQX-00ERhN-RB; Fri, 13 May 2022 00:45:05 +0000 Date: Fri, 13 May 2022 00:45:05 +0000 From: Al Viro To: Gou Hao Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, jiaofenfang@uniontech.com, willy@infradead.org Subject: Re: [PATCH V2] fs: remove fget_many and fput_many interface Message-ID: References: <20211102024648.14578-1-gouhao@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211102024648.14578-1-gouhao@uniontech.com> Sender: Al Viro X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Nov 02, 2021 at 10:46:48AM +0800, Gou Hao wrote: > These two interface were added in 091141a42 commit, > but now there is no place to call them. > > The only user of fput/fget_many() was removed in commit > 62906e89e63b ("io_uring: remove file batch-get optimisation"). > > A user of get_file_rcu_many() were removed in commit > f073531070d2 ("init: add an init_dup helper"). > > And replace atomic_long_sub/add to atomic_long_dec/inc > can improve performance. > > Here are the test results of unixbench: > > Cmd: ./Run -c 64 context1 > > Without patch: > System Benchmarks Partial Index BASELINE RESULT INDEX > Pipe-based Context Switching 4000.0 2798407.0 6996.0 > ======== > System Benchmarks Index Score (Partial Only) 6996.0 > > With patch: > System Benchmarks Partial Index BASELINE RESULT INDEX > Pipe-based Context Switching 4000.0 3486268.8 8715.7 > ======== > System Benchmarks Index Score (Partial Only) 8715.7 > > Signed-off-by: Gou Hao Rebased and applied, with deep apologies for having it fall through cracks back in November.