[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/blkfront: speed up purge_persistent_grants()


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 11 Mar 2022 11:50:40 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AiRt42fRhEl1AlX/cCUYc0SGy1ZQxOYcHHZJYcVh7lQ=; b=HTcYsFcGTGvya5ImKU99FDi+KeuXo65KuIKuUGyGyT3OK0Cf+wmJW7+d1dXsnjSOthrbqDhh3P6s9XRy0bZXgQ/Z15cHEZMSbya4iWSkrStpwmO011GvSf/c/ztKSFjwU+0idUUYsXGX9iC7T+xyfyYUaR3UGOlyZp2PIJf4eoi02jWJv/dRIRm2LsClpTsbpg0hpWO5fmETvkxjkG/mpMtECb9J9ju7HGlmUX7Vs/7DtOIEir2bN4+GLtY7piwyrA89Hg9hV1BU9VMihpve4C3rbomZJPdhgp+Euuwu6vYUUg24C3AUvHfnkaOOrEvBs4/wx9QxkHxjPQrcvJKmwg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oRHAk2D0ajsnTU5Gyy47om7++aHS2n5tayLZk4eWT5LPBrLUbe3a1GUbLOwtjOs78MDzcqiJjz0Mlw/AOgn1BN/MH8jjs6U+Bqvi2vstXQkudU9wP4leCvvhCEzGBxjdP0yYR394SieYq361pjUrupeSmBg7pSL2SgGgeJXH4puOdGh8ODJlcC1SuDBlXrPuIr5KPq0g6co69Mf2m0LvZ9F1zxQWBY/QiRU4L7wgvfrT09Mghh3jQ8fyz6erUIkrofKYtieQdxVxLAWQcXnba7SrsARBEzStVl1OmxK1kTW0U3c9hvgMCMrENBEqnb0fsyQQE7iT67jSfXr9qOe/fA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jens Axboe <axboe@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
  • Delivery-date: Fri, 11 Mar 2022 10:50:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.03.2022 11:35, Juergen Gross wrote:
> purge_persistent_grants() is scanning the grants list for persistent
> grants being no longer in use by the backend. When having found such a
> grant, it will be set to "invalid" and pushed to the tail of the list.
> 
> Instead of pushing it directly to the end of the list, add it first to
> a temporary list, avoiding to scan those entries again in the main
> list traversal. After having finished the scan, append the temporary
> list to the grant list.
> 
> Suggested-by: Jan Beulich <jbeulich@xxxxxxxx>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.