summaryrefslogtreecommitdiff
path: root/kernel/power/user.c
diff options
context:
space:
mode:
authorBojan Smojver <bojan@rexursive.com>2010-11-25 23:41:39 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2010-12-06 23:38:29 +0100
commit9f339caf8454f0c21983111350ede93983db4340 (patch)
treeebe959b206b1edfd4d3976617527d43d3858b00c /kernel/power/user.c
parent698fd6a2c3ca05ec796072defb5c415289a86cdc (diff)
PM / Hibernate: Use async I/O when reading compressed hibernation image
This is a fix for reading LZO compressed image using async I/O. Essentially, instead of having just one page into which we keep reading blocks from swap, we allocate enough of them to cover the largest compressed size and then let block I/O pick them all up. Once we have them all (and here we wait), we decompress them, as usual. Obviously, the very first block we still pick up synchronously, because we need to know the size of the lot before we pick up the rest. Also fixed the copyright line, which I've forgotten before. Signed-off-by: Bojan Smojver <bojan@rexursive.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power/user.c')
0 files changed, 0 insertions, 0 deletions