OpenCloudOS-Kernel/drivers/block/xen-blkback
Konrad Rzeszutek Wilk 29bde09378 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>
2011-10-13 09:48:36 -04:00
..
Makefile xen/blkback: Squash vbd.c,interface.c in blkback.c and xenbus.c respectivly. 2011-04-20 11:57:59 -04:00
blkback.c xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests. 2011-10-13 09:48:36 -04:00
common.h xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests. 2011-10-13 09:48:36 -04:00
xenbus.c xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests. 2011-10-13 09:48:36 -04:00