[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141113104124.GA24379@casper.infradead.org>
Date: Thu, 13 Nov 2014 10:41:24 +0000
From: Thomas Graf <tgraf@...g.ch>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 4/4] rhashtable: Add parent argument to mutex_is_held
On 11/13/14 at 06:38pm, Herbert Xu wrote:
> On Thu, Nov 13, 2014 at 10:37:23AM +0000, Thomas Graf wrote:
> > On 11/13/14 at 06:11pm, Herbert Xu wrote:
> > > Currently mutex_is_held can only test locks in the that are global
> > > since it takes no arguments. This prevents rhashtable from being
> > > used in places where locks are lock, e.g., per-namespace locks.
> > >
> > > This patch adds a parent field to mutex_is_held and rhashtable_params
> > > so that local locks can be used (and tested).
> > >
> > > Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
> >
> > Could you fix the documentation of rhashtable_init() as well?
> >
> > [...]
> > * struct rhashtable_params params = {
> > * .head_offset = offsetof(struct test_obj, node),
> > * .key_offset = offsetof(struct test_obj, key),
> > * .key_len = sizeof(int),
> > * .hashfn = arch_fast_hash,
> > * .mutex_is_held = &my_mutex_is_held,
> > * };
> > [...]
>
> Sorry I missed that. Will do.
Never mind. You did fix it. I looked at the wrong patch.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists