Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1574841

Re: [PATCH 1/6] lockdep: allow to disable reclaim lockup detection

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/6] lockdep: allow to disable reclaim lockup detection
Date 2017-02-06 15:40 +0100
Message-ID <t7SCu-68H-25@gated-at.bofh.it> (permalink)
References <t7S9r-5XR-11@gated-at.bofh.it> <t7Sj8-61m-17@gated-at.bofh.it> <t7SsO-64V-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 06-02-17 06:26:41, Matthew Wilcox wrote:
> On Mon, Feb 06, 2017 at 03:07:13PM +0100, Michal Hocko wrote:
> > While we are at it also make sure that the radix tree doesn't
> > accidentaly override tags stored in the upper part of the gfp_mask.
> 
> > diff --git a/lib/radix-tree.c b/lib/radix-tree.c
> > index 9dc093d5ef39..7550be09f9d6 100644
> > --- a/lib/radix-tree.c
> > +++ b/lib/radix-tree.c
> > @@ -2274,6 +2274,8 @@ static int radix_tree_cpu_dead(unsigned int cpu)
> >  void __init radix_tree_init(void)
> >  {
> >  	int ret;
> > +
> > +	BUILD_BUG_ON(RADIX_TREE_MAX_TAGS + __GFP_BITS_SHIFT > 32);
> >  	radix_tree_node_cachep = kmem_cache_create("radix_tree_node",
> >  			sizeof(struct radix_tree_node), 0,
> >  			SLAB_PANIC | SLAB_RECLAIM_ACCOUNT,
> 
> That's going to have a conceptual conflict with some patches I have
> in flight.  I'll take this part through my radix tree patch collection.

This part is not needed for the patch, strictly speaking but I wanted to
make the code more future proof.

-- 
Michal Hocko
SUSE Labs

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6 v4] scope GFP_NOFS api Michal Hocko <mhocko@kernel.org> - 2017-02-06 15:10 +0100
  [PATCH 1/6] lockdep: allow to disable reclaim lockup detection Michal Hocko <mhocko@kernel.org> - 2017-02-06 15:20 +0100
    Re: [PATCH 1/6] lockdep: allow to disable reclaim lockup detection Matthew Wilcox <willy@infradead.org> - 2017-02-06 15:30 +0100
      Re: [PATCH 1/6] lockdep: allow to disable reclaim lockup detection Michal Hocko <mhocko@kernel.org> - 2017-02-06 15:40 +0100
        Re: [PATCH 1/6] lockdep: allow to disable reclaim lockup detection Matthew Wilcox <willy@infradead.org> - 2017-02-06 16:30 +0100
          Re: [PATCH 1/6] lockdep: allow to disable reclaim lockup detection Michal Hocko <mhocko@kernel.org> - 2017-02-06 16:40 +0100

csiph-web