Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2267355pxb; Fri, 5 Feb 2021 13:16:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1upDINFH5uKPxxZAEy1AfTK954/LkfCjqgy9OwUEnIbkqwrj+DWGwygXj+1HjSedGt3l5 X-Received: by 2002:aa7:ce13:: with SMTP id d19mr5594526edv.208.1612559787285; Fri, 05 Feb 2021 13:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612559787; cv=none; d=google.com; s=arc-20160816; b=jkW5/ngAP+vHiQfqy+miFIq/f5Q7Lkdtuke6JP4H8yYmOM0IBT9My+EzGFk7Hk4M1f yVD4wpeGS+PyeVKbolRRhsfDIS0tZP9GbSRG6255OpyURsZeTlKbsSEPm+RGB8Tk0Md8 vFhKhVteExuP3IPTFQBCX39yBCYO5ItrJnWlAjq1mbibwkt4k7GSnkkvQs2hTuMgTvNl Akjys8ZNUNEagqQLdmtOCboHZY5E1YNKWAvUB/Rn2FPswxDcUZrmzMl/DkyaDMwN9TQX fI5OqmJ20qAwUoMTbNHEWFhDVyMqxIg2YydPNjzOAIpOhg6jRLC57Y2UgW85IYeZx1/m KI+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=XGZLOAkvciIpfu/nSYSfEQWp+WXnvr/pic1GWFUyw/E=; b=Of7ky0xFNQ3eRWAaAK74IQNaZndOvyrdYI3+1fvnX69rH+Jkf55tc93kxjdjNW7iUO QQlkBgaTpLFVcLIh05+go3WRF+M9+/ThZjdwkSAnl5Lx+zvZ1h+FH9KDhPOYbuiYJ84R 33dnX3hHujTEE0OQN+k36WhIa7+JHHTXLcFtS015IaPuftQpfzw9s9LmwYTCuLgKWPtH sYTlyk+y9pZhDT12kRLS27IfhVrWZW9yzZFW95D4F8dibXaKro5LjnQKvRzo+xJluoy2 JwZgx4bddCkPSIgqE8B3UjMA9ZChT9HVfmZ4fj/62Mh5yrbHSHZ4D2mg5ptmwL431BRH KDiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=XcDiY3an; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si5867913ejq.292.2021.02.05.13.15.51; Fri, 05 Feb 2021 13:16:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=XcDiY3an; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231455AbhBEVOw (ORCPT + 99 others); Fri, 5 Feb 2021 16:14:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233189AbhBEVOd (ORCPT ); Fri, 5 Feb 2021 16:14:33 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7DC2C06174A for ; Fri, 5 Feb 2021 13:13:52 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 0AA4C14D4; Fri, 5 Feb 2021 16:13:51 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 0AA4C14D4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1612559631; bh=XGZLOAkvciIpfu/nSYSfEQWp+WXnvr/pic1GWFUyw/E=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=XcDiY3an1jSVg6HGO4ory7L2v45XAh7c0V6s49RJqds9iuaSldlWf0vZspxyaksAJ uvnnEHR5R2s75h7yTHOckMBr9dp9cC78IrZ01+cMZ1S82/VPIDSWQ9T1anuj5D5aRp GjB4FaixczOEHKIG0Uq6v3IEfBXLwgtMReIAKnzA= Date: Fri, 5 Feb 2021 16:13:51 -0500 To: Chuck Lever Cc: Neil Brown , Linux NFS Mailing List Subject: Re: releasing result pages in svc_xprt_release() Message-ID: <20210205211351.GC32030@fieldses.org> References: <811BE98B-F196-4EC1-899F-6B62F313640C@oracle.com> <87im7ffjp0.fsf@notabene.neil.brown.name> <597824E7-3942-4F11-958F-A6E247330A9E@oracle.com> <878s88fz6s.fsf@notabene.neil.brown.name> <700333BB-0928-4772-ADFB-77D92CCE169C@oracle.com> <87wnvre5cy.fsf@notabene.neil.brown.name> <9FC8FB98-2DD7-4B78-BD72-918F91FA11D9@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9FC8FB98-2DD7-4B78-BD72-918F91FA11D9@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Feb 05, 2021 at 08:20:28PM +0000, Chuck Lever wrote: > Baby steps. > > Because I'm perverse I started with bulk page freeing. In the course > of trying to invent a new API, I discovered there already is a batch > free_page() function called release_pages(). > > It seems to work as advertised for pages that are truly no longer > in use (ie RPC/RDMA pages) but not for pages that are still in flight > but released (ie TCP pages). > > release_pages() chains the pages in the passed-in array onto a list > by their page->lru fields. This seems to be a problem if a page > is still in use. I thought I remembered reading an lwn article about bulk page allocation. Looking around now all I can see is https://lwn.net/Articles/684616/ https://lwn.net/Articles/711075/ and I can't tell if any of that work was ever finished. --b.