PATCH 2.4.21 fix: kswapd can fail starting

From: Walter Harms (Walter.Harms@Informatik.Uni-Oldenburg.DE)
Date: Fri Jun 27 2003 - 15:24:18 EST


Hi list,
when i was looking for non checked returns of kernel_thread() i noticed
that vmscan.c never checks. This patch changes that. Note that
kswapd_init() can fail. I have no idea what to do then perhaps somebody
should take a look at that also ?

walter

--- mm/vmscan.c.org 2003-06-25 21:49:45.000000000 +0200
+++ mm/vmscan.c 2003-06-25 21:45:39.000000000 +0200
@@ -768,7 +768,8 @@
 {
        printk("Starting kswapd\n");
        swap_setup();
- kernel_thread(kswapd, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGNAL);
+ if (kernel_thread(kswapd, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGNAL)<0)
+ return 1;
        return 0;
 }

-- 
-
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/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:27 EST