linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add BLK_FEAT_READ_SYNCHRONOUS and SWP_READ_SYNCHRONOUS_IO
@ 2024-09-19 11:29 Qun-Wei Lin
  2024-09-19 11:29 ` [PATCH 1/2] block: add BLK_FEAT_READ_SYNCHRONOUS feature for synchronous read Qun-Wei Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Qun-Wei Lin @ 2024-09-19 11:29 UTC (permalink / raw)
  To: Andrew Morton, Matthias Brugger, AngeloGioacchino Del Regno,
	Ryan Roberts, Huang, Ying, David Hildenbrand, Chris Li,
	Matthew Wilcox (Oracle),
	Al Viro, Dan Schatzberg, Kairui Song, Barry Song, Jens Axboe
  Cc: linux-kernel, linux-mm, linux-arm-kernel, linux-mediatek,
	linux-block, Casper Li, Chinwen Chang, Andrew Yang, John Hsu,
	wsd_upstream, Qun-Wei Lin

This patchset introduces 2 new feature flags, BLK_FEAT_READ_SYNCHRONOUS and
SWP_READ_SYNCHRONOUS_IO.

These changes are motivated by the need to better accommodate certain swap
devices that support synchronous read operations but asynchronous write
operations.

The existing BLK_FEAT_SYNCHRONOUS and SWP_SYNCHRONOUS_IO flags are not
sufficient for these devices, as they enforce synchronous behavior for both
read and write operations.

Patch 1:
- introduce BLK_FEAT_READ_SYNCHRONOUS

Patch 2:
- introduce SWP_READ_SYNCHRONOUS_IO

Qun-Wei Lin (2):
  block: add BLK_FEAT_READ_SYNCHRONOUS feature for synchronous read
  mm, swap: introduce SWP_READ_SYNCHRONOUS_IO

 include/linux/blkdev.h |  8 ++++++++
 include/linux/swap.h   | 31 ++++++++++++++++---------------
 mm/memory.c            |  3 ++-
 mm/page_io.c           |  2 +-
 mm/swapfile.c          |  3 +++
 5 files changed, 30 insertions(+), 17 deletions(-)

-- 
2.45.2



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-12  7:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-19 11:29 [PATCH 0/2] Add BLK_FEAT_READ_SYNCHRONOUS and SWP_READ_SYNCHRONOUS_IO Qun-Wei Lin
2024-09-19 11:29 ` [PATCH 1/2] block: add BLK_FEAT_READ_SYNCHRONOUS feature for synchronous read Qun-Wei Lin
2024-09-19 11:29 ` [PATCH 2/2] mm, swap: introduce SWP_READ_SYNCHRONOUS_IO Qun-Wei Lin
2024-09-19 11:37 ` [PATCH 0/2] Add BLK_FEAT_READ_SYNCHRONOUS and SWP_READ_SYNCHRONOUS_IO Christoph Hellwig
2024-09-21  0:04   ` Chris Li
2024-09-27 10:14     ` Qun-wei Lin (林群崴)
2024-09-25  7:34 ` Huang, Ying
2024-10-11  9:08   ` Qun-wei Lin (林群崴)
2024-10-12  7:14     ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox