Skip to content

Block i/o patches.

Nigel Cunningham lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest32 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32Block I/O Header Filekernel/power/block_io.h+55 -00 replies
2/32Block io c file header.kernel/power/suspend_block_io.c+130 -00 replies
3/32Reset block io stats.kernel/power/suspend_block_io.c+16 -00 replies
4/32Check the io stats.kernel/power/suspend_block_io.c+35 -00 replies
5/32Cleanup one page.kernel/power/suspend_block_io.c+96 -00 replies
6/32Cleanup some completed I/Okernel/power/suspend_block_io.c+36 -10 replies
7/32Wait for bio completion.kernel/power/suspend_block_io.c+23 -00 replies
8/32Finish and cleanup all outstanding I/O.kernel/power/suspend_block_io.c+42 -00 replies
9/32Wait on a particular page.kernel/power/suspend_block_io.c+10 -00 replies
10/32Wait on readahead.kernel/power/suspend_block_io.c+15 -00 replies
11/32Test whether readahead is ready.kernel/power/suspend_block_io.c+14 -00 replies
12/32Prepare & cleanup readahead pages.kernel/power/suspend_block_io.c+22 -00 replies
13/32Suspend bio completion.kernel/power/suspend_block_io.c+27 -00 replies
14/32Submit io on a page.kernel/power/suspend_block_io.c+51 -00 replies
15/32Submit batched i/o.kernel/power/suspend_block_io.c+42 -00 replies
16/32Add page io to a batch.kernel/power/suspend_block_io.c+17 -00 replies
17/32Get an io_info struct.kernel/power/suspend_block_io.c+59 -00 replies
18/32Prepare to do i/o on a page.kernel/power/suspend_block_io.c+90 -00 replies
19/32Do i/o on a page.kernel/power/suspend_block_io.c+44 -00 replies
20/32Return memory needed for block io.kernel/power/suspend_block_io.c+9 -00 replies
21/32Set device info.kernel/power/suspend_block_io.c+5 -00 replies
22/32Move forward extra blocks in a page.kernel/power/suspend_block_io.c+16 -00 replies
23/32Advance one page in the extent state.kernel/power/suspend_block_io.c+19 -00 replies
24/32Set extra page forward flag.kernel/power/suspend_block_io.c+6 -00 replies
25/32Do io on a page in the image proper.kernel/power/suspend_block_io.c+35 -00 replies
26/32Read a page of the image.kernel/power/suspend_block_io.c+63 -00 replies
27/32Init and cleanup routines for pageset i/o.kernel/power/suspend_block_io.c+37 -00 replies
28/32Write a page in the image proper.kernel/power/suspend_block_io.c+5 -00 replies
29/32Read or write a chunk of the header.kernel/power/suspend_block_io.c+67 -00 replies
30/32Finish writing an image header.kernel/power/suspend_block_io.c+7 -00 replies
31/32Suspend block io ops.kernel/power/suspend_block_io.c+20 -00 replies
32/32Module ops for the block i/o functions.kernel/power/suspend_block_io.c+27 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Suspend2][ 00/32] Block i/o patches.

This set of patches contains routines in kernel/power/block_io.c.

The routines use struct block_device * pointers and lists of blocks for each block_device. The blocks, in turn, are stored as chains of extents.

Multiple swap devices can thus be supported trivially, and the position at which each part of the image starts can be described in terms of which device/chain is used, what actual value we're sitting on and (for optimisation) which extent in the chain is current.

On top of this, we implement support for asynchronous I/O and readahead when synchronous I/O is required (ie when reading compressed data at resume time).

The swapwriter and filewriter can then use a really simple interface where they don't have to worry at all about what device or block is the target.

Oh, and we handle variable blocksizes too.