Messages in this thread Patch in this message | | | From | Nigel Cunningham <> | Subject | [Suspend2][ 09/32] [Suspend2] Wait on a particular page. | Date | Tue, 27 Jun 2006 08:37:39 +1000 |
| |
Wait for i/o on a particular page to be complete.
Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/suspend_block_io.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/kernel/power/suspend_block_io.c b/kernel/power/suspend_block_io.c index 5b93ad2..f9c883a 100644 --- a/kernel/power/suspend_block_io.c +++ b/kernel/power/suspend_block_io.c @@ -375,3 +375,13 @@ static void suspend_finish_all_io(void) spin_unlock_irqrestore(&ioinfo_free_lock, flags); } +/* + * wait_on_one_page + * + * Description: Wait for a particular I/O to complete. + */ +static void wait_on_one_page(struct io_info *io_info) +{ + do { do_bio_wait(3); } while (io_info->flags); +} + -- Nigel Cunningham nigel at suspend2 dot net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |