Block i/o patches.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest32 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | Block I/O Header Filekernel/ | +55 | 0 replies | |
| 2/32 | Block io c file header.kernel/ | +130 | 0 replies | |
| 3/32 | Reset block io stats.kernel/ | +16 | 0 replies | |
| 4/32 | Check the io stats.kernel/ | +35 | 0 replies | |
| 5/32 | Cleanup one page.kernel/ | +96 | 0 replies | |
| 6/32 | Cleanup some completed I/Okernel/ | +36 | 0 replies | |
| 7/32 | Wait for bio completion.kernel/ | +23 | 0 replies | |
| 8/32 | Finish and cleanup all outstanding I/O.kernel/ | +42 | 0 replies | |
| 9/32 | Wait on a particular page.kernel/ | +10 | 0 replies | |
| 10/32 | Wait on readahead.kernel/ | +15 | 0 replies | |
| 11/32 | Test whether readahead is ready.kernel/ | +14 | 0 replies | |
| 12/32 | Prepare & cleanup readahead pages.kernel/ | +22 | 0 replies | |
| 13/32 | Suspend bio completion.kernel/ | +27 | 0 replies | |
| 14/32 | Submit io on a page.kernel/ | +51 | 0 replies | |
| 15/32 | Submit batched i/o.kernel/ | +42 | 0 replies | |
| 16/32 | Add page io to a batch.kernel/ | +17 | 0 replies | |
| 17/32 | Get an io_info struct.kernel/ | +59 | 0 replies | |
| 18/32 | Prepare to do i/o on a page.kernel/ | +90 | 0 replies | |
| 19/32 | Do i/o on a page.kernel/ | +44 | 0 replies | |
| 20/32 | Return memory needed for block io.kernel/ | +9 | 0 replies | |
| 21/32 | Set device info.kernel/ | +5 | 0 replies | |
| 22/32 | Move forward extra blocks in a page.kernel/ | +16 | 0 replies | |
| 23/32 | Advance one page in the extent state.kernel/ | +19 | 0 replies | |
| 24/32 | Set extra page forward flag.kernel/ | +6 | 0 replies | |
| 25/32 | Do io on a page in the image proper.kernel/ | +35 | 0 replies | |
| 26/32 | Read a page of the image.kernel/ | +63 | 0 replies | |
| 27/32 | Init and cleanup routines for pageset i/o.kernel/ | +37 | 0 replies | |
| 28/32 | Write a page in the image proper.kernel/ | +5 | 0 replies | |
| 29/32 | Read or write a chunk of the header.kernel/ | +67 | 0 replies | |
| 30/32 | Finish writing an image header.kernel/ | +7 | 0 replies | |
| 31/32 | Suspend block io ops.kernel/ | +20 | 0 replies | |
| 32/32 | Module ops for the block i/o functions.kernel/ | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.