Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp15037lqp; Thu, 4 Apr 2024 06:04:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsVpd9Qux/41jMNhRFkqphS1PgPkLZyocG+X8rokCm3obvd4pNmfCx+zHRFSToAXuFGN9AIrNS2bj92v73kmVKqILiUXpPQFSm7FZlDg== X-Google-Smtp-Source: AGHT+IHFLM40YsftcjnHdTA+NLOFx1RqJBwb2rXrCsvPMizZZC2LdfMQlyWTh/oKDg98LAcn7EQ+ X-Received: by 2002:a05:6102:319c:b0:478:88ae:17f4 with SMTP id c28-20020a056102319c00b0047888ae17f4mr2004561vsh.23.1712235872060; Thu, 04 Apr 2024 06:04:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712235872; cv=pass; d=google.com; s=arc-20160816; b=MotmAVl91gYtl/Xhsj9ZDecCGB1jCw15BCfCdNx84o2LXg2+xnXGDmqYrFyu/IaC7x 8+5caEojnrO6oN6FCRMULMGWmlOuMwzN0nrhr6e4bgx/KFRY6toe1/jjlu28jZu+BDHo H0dpz/qyeVp1Hr42t/VyUnRBFIzq71gFIEXqtyGgQCEiJN3cn7Utj8oxXI1bDbOk97vd Ls7u4MJmPITXDLn3AhTr5geFX6+TpVBAeTE08RlbEkKFo+UjXDQ/y2H/tEIgJHSRLIUZ 0TTsMaPZbi6JHeuWb4SXnUuVzReSEEzI/i5OsUJ8ZGVZXOF1R7bVhhb2dFEzawkfFdvm kQww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:to:references :in-reply-to:from:organization:dkim-signature; bh=4g4N9yKXelCmOiKWJZ2f1A2vviHVjaXSyy4DAuVPmD8=; fh=tIvoV3kjTCR8l8N2nuVx9y0ykPdKxbqm3Z5sE3EVU5I=; b=AU6xF9Qwbis2+SqhS3MDxI2rHTqI9pwbrARhPJdtio3SvX6gnu8vhVsRVTw2sNVami LGbGTd0gACV+wLGgY+N2uLzU7Bq3Ku9ntGgmWk+pWYcqOuOA2JbaIuEBaJ9kIezwecB/ /+J9PwJzJQt/ts9yMNDCkvBKRAVaB7YMnF2/2BfDQQG9+eYNzL9RKsvMHAKA2ixi11Al fCs5sS4t0LnX1/iASYka1LSZtQ41Bhgvrs+3dvVfqpxlTUWJsjaf5CI1YX0qHroq0fyX ZKR5pFXfMVhjiKNuoWO6jhFB6UvvLDl0dRMHwItirpO3NzqBmxwxpVZznRhdEQqicfi6 jFWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y2uMgI7T; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f21-20020a67ee15000000b00478648e1667si1370349vsp.481.2024.04.04.06.04.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 06:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y2uMgI7T; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A663F1C2171E for ; Thu, 4 Apr 2024 13:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01ABE12E7E; Thu, 4 Apr 2024 13:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Y2uMgI7T" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35B172E401 for ; Thu, 4 Apr 2024 13:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712235869; cv=none; b=oTGXzP9auCdxrs/FBokKwjkIdsD8RWDBMWhLWR1I7CmqrzRwLCKQhptoouOPrDfDMjRbCoEJwdtAKktcLcqcKWUi/goAN5689EejeqgLWgal28v0JQk051P7WBXl01WsyQ7LPbXCERC8Lq+REnDQHKSCj+e0ugIcpSbMgSjiR3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712235869; c=relaxed/simple; bh=uSyEK5OiugxceipyjCNDUvQIQqs6b1Kf/kvgRWnJMW0=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version: Content-Type:Date:Message-ID; b=bG+2x821Z+cpHTYde3c5o/wTDyv6cc5d45Dvw+GpRmL2bdf7oEy0hlvyBjSJVFarNnSbx3+q5NkU8L0VA6uGF3XdTJtTyeR4EW/wb97rucr/WHNxdT0vlsWigXy2esUDzx7HRaML/oMa6oCj3JR80mBHJa4rPz+abgWzUYS/aXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Y2uMgI7T; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712235867; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4g4N9yKXelCmOiKWJZ2f1A2vviHVjaXSyy4DAuVPmD8=; b=Y2uMgI7TBeezTItv4j3KKCMV4a95/9wB34YZMgR4Qew9651fYi6r9dfEXCo5BBeHoZVizJ EEW/GR39Wepw5cvZQsGdFsm1rGJDQ0ypZRo3xn3SXnz+ywcJnBMOyrPMraTDIXxwNf1HmI CoffTAp0nbWZN/2GGioAgTvvjAocpDs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-651-vC0W5VbyM8ukohTHz4HI8Q-1; Thu, 04 Apr 2024 09:04:23 -0400 X-MC-Unique: vC0W5VbyM8ukohTHz4HI8Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3011085A5B5; Thu, 4 Apr 2024 13:04:23 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.146]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5562110E4B; Thu, 4 Apr 2024 13:04:22 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <171215477898.1643.12386933275741788356.stgit@klimt.1015granger.net> References: <171215477898.1643.12386933275741788356.stgit@klimt.1015granger.net> To: Chuck Lever Cc: dhowells@redhat.com, linux-nfs@vger.kernel.org, Jan Schunk , Alexander Duyck , Jakub Kacinski , Chuck Lever Subject: Re: [PATCH 2] SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3747894.1712235857.1@warthog.procyon.org.uk> Date: Thu, 04 Apr 2024 14:04:17 +0100 Message-ID: <3747895.1712235857@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Chuck Lever wrote: > That commit assumed that sock_sendmsg() releases all the pages in > the underlying bio_vec array, but the reality is that it doesn't. > svc_xprt_release() releases the rqst's response pages, but the > record marker page fragment isn't one of those, so it is never > released. More like the network layer will take its own refs and drop those when it is done. As you say, it doesn't release the caller's refs. Reviewed-by: David Howells