[PATCH 05/10] fs: return if direct I/O will trigger writeback

2017-06-20 Thread Goldwyn Rodrigues
From: Goldwyn Rodrigues Find out if the I/O will trigger a wait due to writeback. If yes, return -EAGAIN. Return -EINVAL for buffered AIO: there are multiple causes of delay such as page locks, dirty throttling logic, page loading from disk etc. which cannot be taken care of.

[PATCH 05/10] fs: return if direct I/O will trigger writeback

2017-06-19 Thread Goldwyn Rodrigues
From: Goldwyn Rodrigues Find out if the I/O will trigger a wait due to writeback. If yes, return -EAGAIN. Return -EINVAL for buffered AIO: there are multiple causes of delay such as page locks, dirty throttling logic, page loading from disk etc. which cannot be taken care of.