Thread (18 messages) 18 messages, 6 authors, 2021-08-13

Re: [PATCH 2/2] mm: Make swap_readpage() for SWP_FS_OPS use ->direct_IO() not ->readpage()

From: David Howells <dhowells@redhat.com>
Date: 2021-08-12 14:16:42
Also in: linux-fsdevel, linux-nfs, lkml

Matthew Wilcox [off-list ref] wrote:
This is a read, not a write ... but we don't care about ki_pos being
updated, so that store can be conditioned on IOCB_SWAP being clear.
Or instead of storing directly to ki_pos, we take a pointer to ki_pos
and then redirect that pointer somewhere harmless.
But see also ext4_dio_read_iter(), for example.  That touches ki_filp after
starting the op.

David

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