]> git.baikalelectronics.ru Git - 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)
commite05ba385597f0296dc113024f6d8f8dfe33a1ef0
tree5ba59239707b467095a84e743724f29085eb8858
parent67eb699d758488ce9211a9f1c0b75f5216d3972c
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