Pavel Begunkov ab2125df92 mm/filemap: don't revert iter on -EIOCBQUEUED
Currently, if I/O is enqueued for async execution direct paths of
generic_file_{read,write}_iter() will always revert the iter.  There are
no users expecting that, and that is also costly.  Leave iterators as is
on -EIOCBQUEUED.

Link: https://lkml.kernel.org/r/f5247b60e7abbd2ff850cd108491f53a2e0c501a.1610207781.git.asml.silence@gmail.com
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-02-24 13:38:27 -08:00
..
2021-02-24 13:38:27 -08:00
2020-12-15 12:13:47 -08:00
2021-02-23 13:39:45 -08:00
2021-02-23 13:39:45 -08:00
2021-02-22 17:45:02 -08:00
2020-12-22 12:55:09 -08:00
2020-12-15 14:48:04 -08:00
2021-01-27 09:51:49 -07:00
2020-12-15 14:48:04 -08:00
2021-02-23 13:39:45 -08:00
2021-02-24 13:38:27 -08:00
2021-02-24 13:38:27 -08:00
2020-12-15 14:48:04 -08:00
2021-02-21 13:08:42 -08:00
2020-12-15 12:13:47 -08:00