]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4dd30e7bb62a98772b773ecb121a1847231d02d
tree0ce7ddd134914342f4144623afc89d0526a1a852
parent110464d6a433dfc836f2c10a9583ee7899846734
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