diff options
author | Jan Kara <jack@suse.cz> | 2019-10-15 08:43:42 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-10-15 08:43:42 -0700 |
commit | 13ef954445df4fd1d7c003a500ec5ce49573e14b (patch) | |
tree | b59a8b423909bf794dcc7938a7b479533d249344 /fs/iomap/buffered-io.c | |
parent | 4f5cafb5cb8471e54afdc9054d973535614f7675 (diff) |
iomap: Allow forcing of waiting for running DIO in iomap_dio_rw()
Filesystems do not support doing IO as asynchronous in some cases. For
example in case of unaligned writes or in case file size needs to be
extended (e.g. for ext4). Instead of forcing filesystem to wait for AIO
in such cases, add argument to iomap_dio_rw() which makes the function
wait for IO completion. This also results in executing
iomap_dio_complete() inline in iomap_dio_rw() providing its return value
to the caller as for ordinary sync IO.
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/iomap/buffered-io.c')
0 files changed, 0 insertions, 0 deletions