xen/blkfront: cleanup stale persistent grants
authorJuergen Gross <jgross@suse.com>
Mon, 13 Aug 2018 14:01:11 +0000 (16:01 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 27 Aug 2018 16:12:03 +0000 (12:12 -0400)
commita46b53672b2c2e3770b38a4abf90d16364d2584b
tree0ce7ddd134914342f4144623afc89d0526a1a852
parent973e5405f2f67ddbb2bf07b3ffc71908a37fea8e
xen/blkfront: cleanup stale persistent grants

Add a periodic cleanup function to remove old persistent grants which
are no longer in use on the backend side. This avoids starvation in
case there are lots of persistent grants for a device which no longer
is involved in I/O business.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c