From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolay Aleksandrov Subject: Re: [PATCH net-next v2 9/10] bonding: remvoe unwanted lock for bond enslave and release Date: Fri, 08 Nov 2013 18:15:51 +0100 Message-ID: <527D1C47.4040008@redhat.com> References: <527C4793.5060306@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Jay Vosburgh , Andy Gospodarek , "David S. Miller" , Veaceslav Falico , Netdev To: Ding Tianhong Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39116 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757532Ab3KHRTS (ORCPT ); Fri, 8 Nov 2013 12:19:18 -0500 In-Reply-To: <527C4793.5060306@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: On 11/08/2013 03:08 AM, Ding Tianhong wrote: > The bond_change_active_slave() and bond_select_active_slave() > do't need bond lock anymore, so remove the unwanted bond lock > for these two functions. > > The bond_select_active_slave() will release and acquire > curr_slave_lock, so the curr_slave_lock need to protect > the function. > > In bond enslave and bond release, the bond slave list is also > protected by RTNL, so bond lock is no need to exist, remove > the lock and clean the functions. > > Suggested-by: Jay Vosburgh > Suggested-by: Veaceslav Falico > Signed-off-by: Ding Tianhong > --- Small nitpick about the subject: "remvoe" -> "remove"