Goldwyn Rodrigues 6be96d3ad3 fs: return if direct I/O will trigger writeback
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.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-06-20 07:12:03 -06:00
..
2017-06-05 16:59:12 +02:00
2017-04-18 20:41:12 +02:00
2017-04-18 20:41:12 +02:00
2017-02-27 18:43:47 -08:00
2015-09-08 15:35:28 -07:00
2017-05-03 15:52:10 -07:00
2015-11-05 19:34:48 -08:00
2017-05-03 15:52:10 -07:00
2017-05-03 15:52:10 -07:00
2017-06-09 09:27:32 -06:00
2016-03-17 15:09:34 -07:00
2017-06-05 16:59:19 +02:00
2017-04-13 18:24:21 -07:00