]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xen/blkback: Move the plugging/unplugging to a higher level.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Apr 2011 16:57:59 +0000 (12:57 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Apr 2011 17:01:32 +0000 (13:01 -0400)
commit97961ef46b9b5a6a7c918a38b898a7b3e49869f4
tree5ba59239707b467095a84e743724f29085eb8858
parent8b6bf747d70e5bac1a34c8fd773230e1cfdd7546
xen/blkback: Move the plugging/unplugging to a higher level.

We used to the plug/unplug on the submit_bio. But that means
if within a stream of WRITE, WRITE, WRITE,...,WRITE we have
one READ, it could stall the pipeline (as the 'submio_bio'
could trigger the unplug_fnc to be called and stall/sync
when doing the READ). Instead we want to move the unplugging
when the whole (or as a much as possible) ring buffer has been
processed. This also eliminates us doing plug/unplug for
each request.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c