From: Ying Xue <ying.xue@windriver.com>
To: Christophe Gouault <christophe.gouault@6wind.com>,
Steffen Klassert <steffen.klassert@secunet.com>
Cc: "David S. Miller" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next] xfrm: remove useless hash_resize_mutex locks
Date: Fri, 29 Aug 2014 15:55:46 +0800 [thread overview]
Message-ID: <54003202.1060606@windriver.com> (raw)
In-Reply-To: <CADdy8HrQZQH0stZ2P_kEbw6KmnAGLr9WgQVWHEgeUByJ6znHrQ@mail.gmail.com>
On 08/29/2014 03:42 PM, Christophe Gouault wrote:
> 2014-08-29 8:11 GMT+02:00 Steffen Klassert <steffen.klassert@secunet.com>:
>> Ccing Christophe Gouault as he currently reworks the policy
>> hashing.
>
> Thanks.
>
>> One of Christophes patches will use this mutex in a worker of
>> another work queue, so this mutex is really needed if I apply
>> his patchset. See http://patchwork.ozlabs.org/patch/383486/
>
> Yes right, the mutex is actually needed after this patch.
>
>> I tend to apply Christophes patchset after some further testing,
>> so we can't remove this mutex now.
>
>>> /* Generate new index... KAME seems to generate them ordered by cost
>>> diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
>>> index 0ab5413..de971b6 100644
>>> --- a/net/xfrm/xfrm_state.c
>>> +++ b/net/xfrm/xfrm_state.c
>>> @@ -97,8 +97,6 @@ static unsigned long xfrm_hash_new_size(unsigned int state_hmask)
>>> return ((state_hmask + 1) << 1) * sizeof(struct hlist_head);
>>> }
>>>
>>> -static DEFINE_MUTEX(hash_resize_mutex);
>>> -
>>
>> This one is still redundant, so we can remove it if there
>> are no plans to do something similar to the xfrm_state
>> hashing soon. Christophe?
>
> I have no plans to work on the xfrm_state hashing soon. I think this
> mutex can be removed.
>
OK, I will resubmit the patch again to just remove the hash_resize_mutex
lock guarding xfrm_state.
Thanks,
Ying
> Best Regards,
> Christophe
>
>
prev parent reply other threads:[~2014-08-29 7:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 9:49 [PATCH net-next] xfrm: remove useless hash_resize_mutex locks Ying Xue
2014-08-29 6:11 ` Steffen Klassert
2014-08-29 7:42 ` Christophe Gouault
2014-08-29 7:55 ` Ying Xue [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54003202.1060606@windriver.com \
--to=ying.xue@windriver.com \
--cc=christophe.gouault@6wind.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.