From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753563AbbIANy3 (ORCPT ); Tue, 1 Sep 2015 09:54:29 -0400 Received: from collab.rosalab.ru ([195.19.76.181]:60246 "EHLO collab.rosalab.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbbIANy1 (ORCPT ); Tue, 1 Sep 2015 09:54:27 -0400 Subject: Re: [PATCH 2/2] usbnet: Fix a race between usbnet_stop() and the BH To: Oliver Neukum References: <55AD3A41.2040100@rosalab.ru> <1440447223-15945-1-git-send-email-eugene.shatokhin@rosalab.ru> <1440447223-15945-3-git-send-email-eugene.shatokhin@rosalab.ru> <87k2sk9zaf.fsf@nemi.mork.no> <55E01750.4010202@rosalab.ru> <87mvxbzta9.fsf@nemi.mork.no> <55E03B28.6050305@rosalab.ru> <87io7vzzdl.fsf@nemi.mork.no> <55E41557.1060803@rosalab.ru> <1441094336.3328.1.camel@suse.com> Cc: =?UTF-8?Q?Bj=c3=b8rn_Mork?= , David Miller , netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org From: Eugene Shatokhin Organization: ROSA Message-ID: <55E5AE10.2030108@rosalab.ru> Date: Tue, 1 Sep 2015 16:54:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <1441094336.3328.1.camel@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 01.09.2015 10:58, Oliver Neukum пишет: > On Mon, 2015-08-31 at 11:50 +0300, Eugene Shatokhin wrote: >>> But I would have liked it much better if the code became simpler >> instead >>> of more complex. >> >> Me too, but I can see no other way here. The code is simpler without >> locking, indeed, but locking is needed to prevent the problems >> described >> earlier. > > On a practical note, will you resend the patch? Yes, I will do it shortly. Thanks for your help! Regards, Eugene