| Kernel v2.4.6 /mm/swapfile.c |
|---|
 2.4.6
 mm
 swapfile.c
diff -u --recursive --new-file v2.4.5/linux/mm/swapfile.c linux/mm/swapfile.c
--- v2.4.5/linux/mm/swapfile.c Sat May 19 17:16:18 2001
+++ linux/mm/swapfile.c Mon Jun 11 19:15:27 2001
@@ -343,6 +343,16 @@
while (1) {
/*
+ * The algorithm is inefficient but seldomly used
+ * and probably not worth fixing.
+ *
+ * Make sure that we aren't completely killing
+ * interactive performance.
+ */
+ if (current->need_resched)
+ schedule();
+
+ /*
* Find a swap page in use and read it in.
*/
swap_device_lock(si);
|