Received: by 10.223.185.116 with SMTP id b49csp5160808wrg; Tue, 27 Feb 2018 08:42:32 -0800 (PST) X-Google-Smtp-Source: AH8x224hR8vONC/XxEIOr6ZsrXoQZZg9JA/asHF21BTgkHxO3X6RGegh3hTXwq9z20JTkMHMC1WM X-Received: by 10.98.103.136 with SMTP id t8mr14723081pfj.177.1519749752587; Tue, 27 Feb 2018 08:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519749752; cv=none; d=google.com; s=arc-20160816; b=FH/vE3tJF+XGbEVY5z2QsRM762qBFGNvWcgQNvzYz39UQp0M5GnAsz6gpCKKAU2cvz G3kyCwT9Kb97YSnEo9dibop9QdntM7N+Tz1m1HpUlGbQcm7QKjRPkRfWCOcBUrFbh3/l f6nGy7x2cQq96vkbs5CylJueMLfNT99fFH5RlIkpKHDQNutRJ4vv3g1aiVDdA8DL93vX owg1Q/yBFOXR2+zlgPpxb2iEvxMdohTCYv4tAqz+OMmXy+I+x1cmsE2XGcACKFmYg5xd b2+GURJ4Gb2vVsAbqBr0OHiZa3hrDtX7t/HHMmv234Xko43T2lx24BvMN1r/f+DoM0UI JiqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=EPu8d4M4pPh/3uqLpuAVKD18+lq9+aR+A1MECZP5jj8=; b=qxjjczYqqZgJ9But4oULmBT5y5CntIwO5gHoTyM/oPbYrGqxfQz95JtdQqY8ayhcKQ n7c2OwYFK1z17uLgAwTtkjs3qwHqRs46C0pQHU1FwNZ8S9lUsN1yOOgabAymonbTDOic eYE7Eu7T7lbT8IHYY8gXc0SyDqnhKqt/Lg2d0Sj5MuYUPoyJH/7PNF9Bzh8XwYZwre+t lU2/oifpu1ugOGkyoftT/iX0rhtyeou7gZ+APLwphUpN4nE4BaJ+R/nkaZa3CfK37iYq CPkxBxxNzcQeHDcpNz/wIEJPNr9qa31Gil7WC9IeyUz/Vyfn8+y6K6DtRRGg9Pq9EyrO K/bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13-v6si8384257plp.675.2018.02.27.08.42.17; Tue, 27 Feb 2018 08:42:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752589AbeB0QNk (ORCPT + 99 others); Tue, 27 Feb 2018 11:13:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:43434 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbeB0QNh (ORCPT ); Tue, 27 Feb 2018 11:13:37 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 93033AEB9; Tue, 27 Feb 2018 16:13:35 +0000 (UTC) Message-ID: <1519747675.2649.3.camel@suse.com> Subject: Re: inconsistent lock state with usbnet/asix usb ethernet and xhci From: Oliver Neukum To: Eric Dumazet , Marek Szyprowski , LKML , 'Linux Samsung SOC' , Linux USB Mailing List , netdev@vger.kernel.org Cc: Dean Jenkins Date: Tue, 27 Feb 2018 17:07:55 +0100 In-Reply-To: <1519744400.7296.10.camel@gmail.com> References: <1519740421.7296.6.camel@gmail.com> <1519744167.7296.8.camel@gmail.com> <1519744400.7296.10.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, den 27.02.2018, 07:13 -0800 schrieb Eric Dumazet: > On Tue, 2018-02-27 at 07:09 -0800, Eric Dumazet wrote: > > > > > > Note that for this one, it seems we also could perform stats updates in > > BH context, since skb is queued via defer_bh() > > > > But simplicity wins I guess. > > Thinking more about this, I am not sure we have any guarantee that TX > and RX can not run on multiple cpus. > > Using an unique syncp is not going to be safe, even if we make lockdep > happy enough with the local_irq save/restore. Unfortunately you are right. It is not guaranteed for some hardware. Regards Oliver