Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[SSI] openssi/kernel/mm vmscan.c,1.2.2.6,1.2.2.7: msg#00200

Subject: [SSI] openssi/kernel/mm vmscan.c,1.2.2.6,1.2.2.7
Update of /cvsroot/ssic-linux/openssi/kernel/mm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31952/mm

Modified Files:
      Tag: OPENSSI-RH
        vmscan.c 
Log Message:
Workaround for bug #942643: Fix launder_page() to skip CFS pages
        Avoid kswapd/kupdated deadlock


Index: vmscan.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/mm/Attic/vmscan.c,v
retrieving revision 1.2.2.6
retrieving revision 1.2.2.7
diff -u -d -r1.2.2.6 -r1.2.2.7
--- vmscan.c    7 Apr 2004 01:22:07 -0000       1.2.2.6
+++ vmscan.c    29 Apr 2004 00:52:31 -0000      1.2.2.7
@@ -28,6 +28,9 @@
 
 #include <asm/pgalloc.h>
 
+#ifdef CONFIG_CFS
+extern int  cfs_writepage(struct page *);
+#endif
 static void refill_freelist(void);
 static void wakeup_memwaiters(void);
 /*
@@ -348,8 +351,19 @@
                int (*writepage)(struct page *);
 
                writepage = page->mapping->a_ops->writepage;
+#ifndef CONFIG_CFS
                if ((gfp_mask & __GFP_FS) && writepage &&
-                   writepage != fail_writepage) {
+                   writepage != fail_writepage)
+#else /* CONFIG_CFS */
+               /* Right now CFS does everything syncrounous,
+                * so to avoid deadlock with kupdated, don't
+                * writepage here 
+                */
+               if ((gfp_mask & __GFP_FS) && writepage &&
+                   writepage != fail_writepage &&
+                   writepage != cfs_writepage)
+#endif /* CONFIG_CFS */
+               {
                        ClearPageDirty(page);
                        SetPageLaunder(page);
                        lru_unlock(zone);



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation