Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3598931pxb; Sun, 7 Feb 2021 15:43:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRnMH5blfStFOWKQeiVI+SHJ9AQcuOBK5DEt01wgBR/qlWVIzSHZHYHLWmtEJHDcvfVrOg X-Received: by 2002:a05:6402:34c1:: with SMTP id w1mr14660511edc.147.1612741416621; Sun, 07 Feb 2021 15:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612741416; cv=none; d=google.com; s=arc-20160816; b=yRn+Hdqvo8AuLWiU6xSn2CytIRuffpnEA/qvhWQfIIMk489ew0geOtJeQJI3FApDCy BkY34VLdEXlNZrJugf2vc6LrRcJ3yRWPRuEMjOWNZ+w9yvxHC+Db8g59fWlhcKE9fjWL 2KDlKwNyi6NBoOjhUcOBiblRcw7oAA9tzdcI2frlS0WKOLaZsRKx69TSzzuFW2PNQkeZ U8WTOWyBqrr3eZYmRUjhhut732ihIrCKTnzOY4QWCBDb/yhva5D5ui79XZdrpoXQAJIs RE5BlT7mCgNb9215q5ugTnddVQFOfp1Wk7ppkDmi3hDOhh9hS+9vsEvPLndGcSfUdzxz 0N1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:references:in-reply-to :subject:cc:date:to:from; bh=bvD/lBltFMOpP6VjfZzYjNbZk5NqvQ1AzSC7dCwqOEA=; b=jmtW2krdXkOG5vSgIG3pxYepoB9cbbM0Bh2WDBAglC439tWPZsMYQOuedGKSEz7Gq+ Kn8WwO9r7iaWty2fY2gvJnTk5VYJ5aBc0MGSmH1/QaKSlmPIo2u0RjrYPLeKyilSUZL+ /5/5C0EUKVG8IaRKdeQYtoA+GnNEHOkz0/CKEKLvy3spSR3TLPVGoF/Mg9XqiTXjNMdM Vui9pnM2NN4Cg/25xgV3alcTa+5koGxJ5lwKcVS0ANYepegcHhog+4YUcAncfpwxeihg WPrzgCxSKjhFAjRHu9Vod7wzIlPXq5+R2mvkWJEFX56lLeteL9v524qmVF+xbDPHT9XP C10w== ARC-Authentication-Results: i=1; mx.google.com; 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 d21si9775861ejy.374.2021.02.07.15.43.00; Sun, 07 Feb 2021 15:43:36 -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; 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 S229692AbhBGXmy (ORCPT + 99 others); Sun, 7 Feb 2021 18:42:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:34294 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbhBGXmx (ORCPT ); Sun, 7 Feb 2021 18:42:53 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 403FDAC6E; Sun, 7 Feb 2021 23:42:12 +0000 (UTC) From: NeilBrown To: Chuck Lever Date: Mon, 08 Feb 2021 10:42:08 +1100 Cc: Linux NFS Mailing List Subject: Re: releasing result pages in svc_xprt_release() In-Reply-To: <9FC8FB98-2DD7-4B78-BD72-918F91FA11D9@oracle.com> 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> Message-ID: <874kine97z.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --=-=-= Content-Type: text/plain On Fri, Feb 05 2021, 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. But if a page is still in use, it is not put on the list. if (!put_page_testzero(page)) continue; NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCAAsFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAmAgetAOHG5laWxiQHN1 c2UuZGUACgkQOeye3VZigbmVig//SRaYwWMTFaUFnWyv+sdBcSJLWsoh3IYDVYVh m/nDlyX7MGT4lQg2tJs5+CaC/vVNdUEOSXXc7wGN9geuWqyzvXtVgnt6UaZsSX52 bBz6wBolrwK9EvKi3qBAzz9lu6V/7OHy99sqW7G8cPwIaJ0UeZAKalb1kkVdDBRI st+QjXfOmDMdKDbqy3lRGUFzEkiVAOOSr+uEO98xkjG9cephJBxpTgo3RE+10br+ Z1Jm7MtsYGwf3Qj5zJlYXqDAfSDGgqs5lJdbq4s//ySt+okb5cY3nOb6LMG9eQbI ENAYA3avkyf83UR9HqcaCwwDH8I5jFPvJJ+9dZDh5l7k9bv2d+BkQdlaf1W+YmRB 3R5B4eRtoCZrdVLipatYBpVMCSmzfmKBrtN1D+kE+U2XXMiUM1QMFd1+qHbINW73 b1ELs2OOETIDOlnpxluJvUZoCCm8PO3AO919SD4RkcAl7tPcUzJyXI9Z/ZGsCNlC Zp4ZdLlHHevXsApznEgu3ZW2koF18TkChGLRrktGLBTCmKSYHShDCc1GvDMzIT/J PbGzN2EXvTC5Tqg1vi75pvLioVnhX/0vji7mdB9vjVfiwbKUiUgSKbkAwbGiAaii KbskgIOlejC7vtKmUIW6AJeltYGQW79AtZN9Nl0/FI37uezoN1W5O4XnjwEcH1ue CX7mGjg= =Z+jB -----END PGP SIGNATURE----- --=-=-=--