diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2011-08-30 09:46:11 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-06 11:23:51 +0200 |
commit | c30e624d5d04efdb581c841f9bf8b06302b96575 (patch) | |
tree | c8d52ebaac8687324a86a368a2076623f5ee7fc4 /block | |
parent | f69539b14bdba7a5cd22e1f4bed439b476b17286 (diff) | |
download | qemu-c30e624d5d04efdb581c841f9bf8b06302b96575.zip qemu-c30e624d5d04efdb581c841f9bf8b06302b96575.tar.gz qemu-c30e624d5d04efdb581c841f9bf8b06302b96575.tar.bz2 |
linux aio: some comments
Add some notes about Linux AIO explaining why we don't use AIO in
some situations.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/raw-posix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c index c5c9944..bcf50b2 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -236,6 +236,10 @@ static int raw_open_common(BlockDriverState *bs, const char *filename, } #ifdef CONFIG_LINUX_AIO + /* + * Currently Linux do AIO only for files opened with O_DIRECT + * specified so check NOCACHE flag too + */ if ((bdrv_flags & (BDRV_O_NOCACHE|BDRV_O_NATIVE_AIO)) == (BDRV_O_NOCACHE|BDRV_O_NATIVE_AIO)) { |