[obsolete] radix-tree-make-radix_tree_preload-alloc-one-more-slot.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     radix-tree: make radix_tree_preload alloc one more slot
has been removed from the -mm tree.  Its filename was
     radix-tree-make-radix_tree_preload-alloc-one-more-slot.patch

This patch was dropped because it is obsolete

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: radix-tree: make radix_tree_preload alloc one more slot
From: Zhu Yanhai <zhu.yanhai@xxxxxxxxx>

The operations against radix tree always use paths with
RADIX_TREE_MAX_PATH + 1 slots, but radix_tree_preload only pre-allocs
RADIX_TREE_MAX_PATH slots at present, which causes radix_tree_node_alloc
tries to do kmem_cache_alloc at the last slot even if we don't have
gfp_mask & __GFP_WAIT in hand.

Signed-off-by: Zhu Yanhai <zhu.yanhai@xxxxxxxxx>
Cc: Wu Fengguang <wfg@xxxxxxxxxxxxxxx>
Cc: Jiri Kosina <jkosina@xxxxxxx>
Cc: Huang Shijie <shijie8@xxxxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/radix-tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/radix-tree.c~radix-tree-make-radix_tree_preload-alloc-one-more-slot lib/radix-tree.c
--- a/lib/radix-tree.c~radix-tree-make-radix_tree_preload-alloc-one-more-slot
+++ a/lib/radix-tree.c
@@ -79,7 +79,7 @@ static struct kmem_cache *radix_tree_nod
  */
 struct radix_tree_preload {
 	int nr;
-	struct radix_tree_node *nodes[RADIX_TREE_MAX_PATH];
+	struct radix_tree_node *nodes[RADIX_TREE_MAX_PATH + 1];
 };
 static DEFINE_PER_CPU(struct radix_tree_preload, radix_tree_preloads) = { 0, };
 
_

Patches currently in -mm which might be from zhu.yanhai@xxxxxxxxx are

radix-tree-make-radix_tree_preload-alloc-one-more-slot.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux