Thread (15 messages) flat view 15 messages, 3 authors, 2021-12-06

Re: [PATCH 2/2] block: move direct_IO into our own read_iter handler

From: Jens Axboe <axboe@kernel.dk>
Date: 2021-12-06 16:33:58
Also in: linux-block

On 12/5/21 11:58 PM, Christoph Hellwig wrote:
On Fri, Dec 03, 2021 at 08:38:29AM -0700, Jens Axboe wrote:
quoted
Don't call into generic_file_read_iter() if we know it's O_DIRECT, just
set it up ourselves and call our own handler. This avoids an indirect call
for O_DIRECT.

Fall back to filemap_read() if we fail.
Please also do it for the write side, having a partial ->direct_IO is a
really bad idea.
Sure, I'll do the write side as well.

-- 
Jens Axboe

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help