Re: [Xen-devel] [PATCH v2 1/5] xen/blkback: don't keep persistent grants too long

Roger Pau Monné
2018-08-08T15:19:41Z

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 <jgross@suse.com>

Reviewed-by: Roger Pau Monnï¿½ <roger.pau@citrix.com>

Thanks, Roger.