block: add aio_flush operation
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Sep 2009 17:01:49 +0000 (19:01 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:19:46 +0000 (10:19 -0500)
commit20fefe2628d82eb6a73b545b76d78fa2e1c57d6a
tree5b8bc0ee1ab758a5b68c51e8ba5288f87b36af9c
parente1eac6ef844fc1243fa648109cef81975819f3bb
block: add aio_flush operation

Instead stalling the VCPU while serving a cache flush try to do it
asynchronously.  Use our good old helper thread pool to issue an
asynchronous fdatasync for raw-posix.  Note that while Linux AIO
implements a fdatasync operation it is not useful for us because
it isn't actually implement in asynchronous fashion.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c
block.h
block/raw-posix-aio.h
block/raw-posix.c
block_int.h
posix-aio-compat.c