Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.6 /mm/swapfile.c

Filename:/mm/swapfile.c
Lines Added:10
Lines Deleted:0
Also changed in: (Previous) 2.4.6-pre9  2.4.6-pre8  2.4.6-pre7  2.4.6-pre6  2.4.6-pre5  2.4.6-pre4 
(Following) 2.4.6-ac1  2.4.6-ac2  2.4.6-ac3  2.4.6-ac4  2.4.6-ac5  2.4.7-pre1 

Location
[  2.4.6
  [  mm
     o  swapfile.c

Patch

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);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.