linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/10] zcache: fix preemptable memory allocation in atomic context
@ 2012-06-19  8:32 Xiao Guangrong
  2012-06-19  8:33 ` [PATCH 02/10] zcache: fix refcount leak Xiao Guangrong
                   ` (10 more replies)
  0 siblings, 11 replies; 30+ messages in thread
From: Xiao Guangrong @ 2012-06-19  8:32 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Seth Jennings, Dan Magenheimer, LKML, linux-mm

zcache_do_preload uses ZCACHE_GFP_MASK to allocate memory that will be sleep,
but zcache_do_preload is called in zcache_put_page where IRQ is disabled

Fix it by use GFP_ATOMIC flag

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
---
 drivers/staging/zcache/zcache-main.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c
index 03f690b..d215fb4 100644
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@ -45,13 +45,8 @@
 #include <linux/frontswap.h>
 #endif

-#if 0
 /* this is more aggressive but may cause other problems? */
 #define ZCACHE_GFP_MASK	(GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN)
-#else
-#define ZCACHE_GFP_MASK \
-	(__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | __GFP_NOMEMALLOC)
-#endif

 #define MAX_POOLS_PER_CLIENT 16

-- 
1.7.7.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2012-06-26  7:08 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19  8:32 [PATCH 01/10] zcache: fix preemptable memory allocation in atomic context Xiao Guangrong
2012-06-19  8:33 ` [PATCH 02/10] zcache: fix refcount leak Xiao Guangrong
2012-06-19 14:28   ` Seth Jennings
2012-06-19 19:49     ` Dan Magenheimer
2012-06-19 20:06       ` Seth Jennings
2012-06-20  2:54         ` Xiao Guangrong
2012-06-20  3:19           ` Xiao Guangrong
2012-06-20 22:25             ` Dan Magenheimer
2012-06-21  1:44               ` Xiao Guangrong
2012-06-19  8:33 ` [PATCH 03/10] zcache: fix a compile warning Xiao Guangrong
2012-06-19 14:30   ` Seth Jennings
2012-06-20  2:55     ` Xiao Guangrong
2012-06-19  8:34 ` [PATCH 04/10] zcache: remove unnecessary check of config option dependence Xiao Guangrong
2012-06-19 14:36   ` Seth Jennings
2012-06-19  8:35 ` [PATCH 05/10] zcache: mark zbud_init/zcache_comp_init as __init Xiao Guangrong
2012-06-19 16:35   ` Seth Jennings
2012-06-19  8:35 ` [PATCH 06/10] zcache: cleanup zbud_init Xiao Guangrong
2012-06-19  8:35 ` [PATCH 07/10] zcache: optimize zcache_do_preload Xiao Guangrong
2012-06-19  8:36 ` [PATCH 08/10] zcache: cleanup zcache_do_preload and zcache_put_page Xiao Guangrong
2012-06-19  8:37 ` [PATCH 09/10] zcache: introduce get_zcache_client Xiao Guangrong
2012-06-19  8:37 ` [PATCH 10/10] cleanup the code between tmem_obj_init and tmem_obj_find Xiao Guangrong
2012-06-19 16:49   ` Seth Jennings
2012-06-20  2:53     ` Xiao Guangrong
2012-06-19 14:26 ` [PATCH 01/10] zcache: fix preemptable memory allocation in atomic context Seth Jennings
2012-06-20  2:51   ` Xiao Guangrong
2012-06-21 18:51 ` Seth Jennings
2012-06-23  3:00   ` Greg Kroah-Hartman
2012-06-25 13:48     ` Seth Jennings
2012-06-25 14:11       ` Greg Kroah-Hartman
2012-06-26  7:08         ` Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).