]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] swsusp: read speedup
authorAndrew Morton <akpm@osdl.org>
Tue, 26 Sep 2006 06:32:44 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:58 +0000 (08:48 -0700)
commit546e0d271941dd1ff6961e2a1f7eac75f1fc277e
tree60c74a9598f7cb4622c1b6acd25df5df67284353
parent8c002494b55119a3fd1dddee83b4fb75cfda47e5
[PATCH] swsusp: read speedup

Implement async reads for swsusp resuming.

Crufty old PIII testbox:
15.7 MB/s -> 20.3 MB/s

Sony Vaio:
14.6 MB/s -> 33.3 MB/s

I didn't implement the post-resume bio_set_pages_dirty().  I don't really
understand why resume needs to run set_page_dirty() against these pages.

It might be a worry that this code modifies PG_Uptodate, PG_Error and
PG_Locked against the image pages.  Can this possibly affect the resumed-into
kernel?  Hopefully not, if we're atomically restoring its mem_map?

Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Jens Axboe <axboe@suse.de>
Cc: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h
kernel/power/power.h
kernel/power/snapshot.c
kernel/power/swap.c
mm/page_io.c