Re: [PATCH RFC] iomap: only return IO error if no data has been transferred

Christoph Hellwig
2020-11-18T07:09:58Z

On Tue, Nov 17, 2020 at 03:17:18PM -0700, Jens Axboe wrote:
> If we've successfully transferred some data in __iomap_dio_rw(),
> don't mark an error for a latter segment in the dio.

For normal direct I/O we never return short reads/writes, and IIRC that
has been inherited from the old direct I/O code. I think we'll need
to make this conditional on your nowait case rather than changing the
user visible behavior.