# Question about loop device DIO/AIO and FLUSH

- From: Amir Goldstein \<amir73il@gmail.com\>
- Date: 2016-06-30 20:54:50 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2016/06/109361
- Thread: https://ratatoskr.run/linux-fsdevel/2016/06/109361/t.md

```text
Hi Ming,

I was reading through the code of loop DIO/AIO
and I was wondering whether lo_req_flush() really
honors REQ_FLUSH by calling  vfs_fsync() on a backing file
that is open with O_DIRECT?

Shouldn't lo_req_flush() actually wait for completion of
all the in-flight loop AIO requests to complete?
Am I missing something?

Thanks,
Amir.
```
