From: Michal Kubecek Subject: Re: [PATCH] bonding:avoid repeated display of same link status change Date: Tue, 23 Oct 2018 18:26:14 +0200 Message-ID: <20181023162613.GA22291@unicorn.suse.cz> References: <20181023152924.24033-1-mk.singh@oracle.com> <65f98009-1ce0-d6fd-06dc-233aa115abc9@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Mahesh Bandewar =?utf-8?B?KOCkruCkueClh+CktiDgpKzgpILgpKHgpYfgpLXgpL4=?= =?utf-8?B?4KSwKQ==?= , mk.singh@oracle.com, linux-netdev , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , linux-kernel@vger.kernel.org To: Eric Dumazet Return-path: Content-Disposition: inline In-Reply-To: <65f98009-1ce0-d6fd-06dc-233aa115abc9@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, Oct 23, 2018 at 09:10:44AM -0700, Eric Dumazet wrote: > > > On 10/23/2018 08:54 AM, Mahesh Bandewar (महेश बंडेवार) wrote: > > > Atomic operations are expensive (on certain architectures) and miimon > > runs quite frequently. Is the added cost of these atomic operations > > even worth just to avoid *duplicate info* messages? This seems like a > > overkill! > > atomic_read() is a simple read, no atomic operation involved. > > Same remark for atomic_set() Which makes me wonder if the patch really needs atomic_t. Michal Kubecek