xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Oct 2011 04:42:22 +0000 (00:42 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 13 Oct 2011 13:48:36 +0000 (09:48 -0400)
commit29bde093787f3bdf7b9b4270ada6be7c8076e36b
tree4fff697e0acb2471b1bd575cbd006fa4efc3937d
parent469738e675524b6aa029ecd46bdda3f878b12eff
xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests.

We emulate the barrier requests by draining the outstanding bio's
and then sending the WRITE_FLUSH command. To drain the I/Os
we use the refcnt that is used during disconnect to wait for all
the I/Os before disconnecting from the frontend. We latch on its
value and if it reaches either the threshold for disconnect or when
there are no more outstanding I/Os, then we have drained all I/Os.

Suggested-by: Christopher Hellwig <hch@infradead.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c
This page took 0.027302 seconds and 5 git commands to generate.