path: root/api
diff options
authorAnand Avati <>2012-09-30 13:26:59 -0700
committerAnand Avati <>2012-10-01 16:39:09 -0700
commit5f9ad8a2bcc18d8ae828140d20203de496b371a4 (patch)
tree368d2dab4f1d1ca45d9ffbed4b425bb47859cb4b /api
parent5b896df0543e484b4de4de0a6ffa1053c5f92273 (diff)
linux-aio: fixes while setting O_DIRECT flag
Linux AIO needs O_DIRECT to be set for effective operation. O_DIRECT in turn has constraints on when it can work (offset, size alignment) So use O_DIRECT (unless instructed by application) only when offset and size alignments match. Else, io_submit() will happen over non-O_DIRECT fd, effectively blocking till the completion of the IO. Also fix a multithreading bug where detection/setting of O_DIRECT for a request was not atomic with io_submit() of that request. Change-Id: I190017e8bc78217429aff0714dca224cbe6f251d BUG: 837495 Signed-off-by: Anand Avati <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Amar Tumballi <> Tested-by: Amar Tumballi <>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions