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