Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp953364imm; Wed, 8 Aug 2018 08:22:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxv5C8wVmGTTZonvhuD9fEnV7ge5dscE88Lz2XduMj1hIWAIOyUeHud85oqWawkCwlje4O5 X-Received: by 2002:a63:af14:: with SMTP id w20-v6mr3064578pge.47.1533741766781; Wed, 08 Aug 2018 08:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533741766; cv=none; d=google.com; s=arc-20160816; b=wzaL9yd+/jMRmGsC9WzE8OOtsugvWjiy+oDALwP1QY35FU3pbGbUbFeX4KboXZGK9G RT3xdnvH+ik28jysAuP2HU+iW0O65+ouh+hPuxuzWjjI82mwxMc9DbqyRDcuO4CQvdOT UInBcGhfkXIXkHbGLWzb/8Okb35FWChr09AeQ83BU0Qwtty0zX8iYMFUuoCajlcw22HH qhhCO7MutoeBXQh5jbMB6XiJRCeuU/SYkJFRliqmi+9DP1AaGNrf0aF6153gFrXyxspU Nus2Xv6QTc3LdbpgMGgV/KzHi1xrfpZl/Ct2tRv2KbvNd4fpML5+o0THweH0kgolzUx0 Y6dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=7F0Nl5FhkHByIWfO5V+9rH7yqxQhN0CqmfHoI9LG2hM=; b=BApn+vW6mUk88TWgUW9GC7XKU5YpxyUhlBhbDqeuCOPPJ2k9nU0Ff8ox0wedlvClXp yjTv3Qpput/lnIUI2tGldvAARc+nXWBE1XgI+kjutffQE10vrbKFfO03MnxeujNhAed6 nS29TaoqnaumBKhaL6geO+vlzLBvD5g5kJPvrbqgdj27lXShCg7nuLD49IUs9VVnZFOA jK+VN9RH21vioWNF505EQ3Ylrx507cY9QPlKNvVOCvQA7ykefp9H2TCuhWIUv4hlnkoc dkqq4S5tUgbcTrCWmswYRXqbYeqjRsvo/RL+QPt3vgSQz9lexY3uQzwBKrINHWtaeW0G kSbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si4087479pfe.150.2018.08.08.08.22.31; Wed, 08 Aug 2018 08:22:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727314AbeHHRls (ORCPT + 99 others); Wed, 8 Aug 2018 13:41:48 -0400 Received: from smtp.eu.citrix.com ([185.25.65.24]:4262 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbeHHRls (ORCPT ); Wed, 8 Aug 2018 13:41:48 -0400 X-IronPort-AV: E=Sophos;i="5.53,458,1531785600"; d="scan'208";a="77357221" Date: Wed, 8 Aug 2018 17:19:41 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Juergen Gross CC: , , , , Subject: Re: [Xen-devel] [PATCH v2 1/5] xen/blkback: don't keep persistent grants too long Message-ID: <20180808151941.cse6louxgeyguz45@mac> References: <20180808142528.31029-1-jgross@suse.com> <20180808142528.31029-2-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180808142528.31029-2-jgross@suse.com> User-Agent: NeoMutt/20180716 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 08, 2018 at 04:25:24PM +0200, Juergen Gross wrote: > Persistent grants are allocated until a threshold per ring is being > reached. Those grants won't be freed until the ring is being destroyed > meaning there will be resources kept busy which might no longer be > used. > > Instead of freeing only persistent grants until the threshold is > reached add a timestamp and remove all persistent grants not having > been in use for a minute. > > Signed-off-by: Juergen Gross Reviewed-by: Roger Pau Monn? Thanks, Roger.