[PATCH 1/7] Swap Migration: Fix double unlock

From: Christoph Lameter
Date: Mon Nov 28 2005 - 15:43:12 EST


SwapMig: fix double page unlock

The cleanup patches screwed things up slightly. In case of an unsuccessful
migration a page may be unlocked twice.

Signed-off-by: Christoph Lameter <clameter@xxxxxxx>


Index: linux-2.6.15-rc2-mm1/mm/vmscan.c
===================================================================
--- linux-2.6.15-rc2-mm1.orig/mm/vmscan.c 2005-11-28 11:06:15.000000000 -0800
+++ linux-2.6.15-rc2-mm1/mm/vmscan.c 2005-11-28 11:23:45.000000000 -0800
@@ -751,6 +751,7 @@ redo:
list_move(&page->lru, moved);
continue;
}
+ goto next;

unlock_page:
unlock_page(page);
-
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/