[Suspend2][ 09/32] [Suspend2] Wait on a particular page.

From: Nigel Cunningham
Date: Mon Jun 26 2006 - 19:16:12 EST


Wait for i/o on a particular page to be complete.

Signed-off-by: Nigel Cunningham <nigel@xxxxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/