From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Snook Subject: Re: [PATCH] bonding: fix race that causes invalid statistics Date: Mon, 28 Jan 2008 19:13:16 -0500 Message-ID: <479E6F9C.90902@redhat.com> References: <20080128233825.GA21912@gospo.usersys.redhat.com> <23624.1201564743@death> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andy Gospodarek , netdev@vger.kernel.org To: Jay Vosburgh Return-path: Received: from mx1.redhat.com ([66.187.233.31]:45173 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbYA2ANT (ORCPT ); Mon, 28 Jan 2008 19:13:19 -0500 In-Reply-To: <23624.1201564743@death> Sender: netdev-owner@vger.kernel.org List-ID: Jay Vosburgh wrote: > Andy Gospodarek wrote: > >> + memcpy(stats,&local_stats,sizeof(net_device_stats)); > > FYI, this generates a compiler error (missing the word "struct" > in here). Other than not compiling, the patch seems reasonable. I'll > fix it up and include it in the series I'll post tomorrow or so. > > -J Looks like Andy sent the draft version by mistake. We did in fact test an otherwise identical patch, which did fix the bug. -- Chris