linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] xen/blk: persistent grant rework
@ 2018-08-08 14:25 Juergen Gross
  2018-08-08 14:25 ` [PATCH v2 1/5] xen/blkback: don't keep persistent grants too long Juergen Gross
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Juergen Gross @ 2018-08-08 14:25 UTC (permalink / raw)
  To: linux-kernel, xen-devel, linux-block
  Cc: konrad.wilk, roger.pau, axboe, boris.ostrovsky, Juergen Gross

Persistent grants are used in the Xen's blkfront/blkback drivers to
avoid mapping/unmapping of I/O buffers in the backend for each I/O.

While this speeds up processing quite a bit there are problems related
to persistent grants in some configurations: domains with multiple
block devices making use of persistent grants might suffer from a lack
of grants if each of the block devices experienced a high I/O load at
some time. This is due to the number of persistent grants per device
only to be limited by a rather high maximum value, but never being
released even in case of longer times without any I/O.

This series modifies xen-blkback to unmap any domU page mapped via a
persistent grant after a timeout (default: 60 seconds). The timeout
is set to its default value again when a persistent grant has been
used for an I/O.

xen-blkfront is modified to scan every 10 seconds for persistent grants
not in use by blkback any more and to remove such grants.

The last 3 patches are small cleanups of blkfront and blkback drivers.

V2:
- patch 1: added new module parameter doc
- patch 1: removed PERSISTENT_GNT_WAS_ACTIVE flag
- patch 2: removed global worker active flag
- added new patch 4

Juergen Gross (5):
  xen/blkback: don't keep persistent grants too long
  xen/blkfront: cleanup stale persistent grants
  xen/blkfront: reorder tests in xlblk_init()
  xen/blkback: move persistent grants flags to bool
  xen/blkback: remove unused pers_gnts_lock from struct xen_blkif_ring

 Documentation/ABI/testing/sysfs-driver-xen-blkback |  10 ++
 drivers/block/xen-blkback/blkback.c                |  99 ++++++++++---------
 drivers/block/xen-blkback/common.h                 |  14 +--
 drivers/block/xen-blkfront.c                       | 110 ++++++++++++++++++---
 4 files changed, 163 insertions(+), 70 deletions(-)

-- 
2.13.7


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-08-09 22:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08 14:25 [PATCH v2 0/5] xen/blk: persistent grant rework Juergen Gross
2018-08-08 14:25 ` [PATCH v2 1/5] xen/blkback: don't keep persistent grants too long Juergen Gross
2018-08-08 15:19   ` [Xen-devel] " Roger Pau Monné
2018-08-09 22:33   ` kbuild test robot
2018-08-09 22:33   ` [RFC PATCH] xen/blkback: xen_blkif_pgrant_timeout can be static kbuild test robot
2018-08-08 14:25 ` [PATCH v2 2/5] xen/blkfront: cleanup stale persistent grants Juergen Gross
2018-08-08 15:23   ` Roger Pau Monné
2018-08-08 14:25 ` [PATCH v2 3/5] xen/blkfront: reorder tests in xlblk_init() Juergen Gross
2018-08-08 14:25 ` [PATCH v2 4/5] xen/blkback: move persistent grants flags to bool Juergen Gross
2018-08-08 15:35   ` [Xen-devel] " Roger Pau Monné
2018-08-08 14:25 ` [PATCH v2 5/5] xen/blkback: remove unused pers_gnts_lock from struct xen_blkif_ring Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).