Re: [PATCH 1/4] jump_label: make static_key_enabled() work on static_key_true/false types too

From: Tejun Heo
Date: Thu Sep 17 2015 - 11:28:01 EST


On Thu, Sep 17, 2015 at 10:59:57AM +0200, Peter Zijlstra wrote:
> On Tue, Sep 15, 2015 at 09:51:22PM -0400, Tejun Heo wrote:
> > static_key_enabled() can be used on struct static_key but not on its
> > wrapper types static_key_true and static_key_false. The function is
> > useful for debugging and management of static keys. Update it so that
> > it can be used for the wrapper types too.
> >
> > Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> > Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> > ---
> > Hello,
> >
> > If this patch is acceptable, please let me know how it should be
> > routed.
> >
>
> Yeah, no problem with this, I'm assuming there's dependencies in the
> patches you didn't send me?

Yeap, later patches add static_keys for testing whether a controller
is enabled and whether it's on the new or old hierarchy and management
path in cgroup core needs to index the keys and test them.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/