Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp183216ybt; Tue, 23 Jun 2020 18:57:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPcm5lOtSs9089Kve8kafGU5Hpp3/6iWgoltRqmOAyejsQIAXtLoyf8FMHcXGWfpl3so98 X-Received: by 2002:a17:906:cb94:: with SMTP id mf20mr22624882ejb.46.1592963857152; Tue, 23 Jun 2020 18:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592963857; cv=none; d=google.com; s=arc-20160816; b=WPH2qF5N/M9avxP5yGH9EEn98m0dx4fPjZcxBS5IYfZqWfQMTmoOQ2xOANbTtL+kJr eC9fDae6xd+m4y1eWPloVegXRAKUC9ctL9Qn0sega/eNsvk3CtaobpnxpvlcCpaAM7sH BDdOQ0GY9KzfCl8RcUeli3px6R4RbSouNfYSnzeGXfN7+Oj0QMfufmNLK1gwxm6LQNhU 3qo/5Fy8nc2UYz3zHd45dLu4WaZzavBdRtu9Td0ALKoCE30J5D3YC3I6AvyVSfGUV3SJ T6WY0dvj4QXzwqI14A6kFg6x6vGtJAf7stcTZdwp8eNsISxWP8A2dI5sk564iQKmlAEO /8Dw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=QU5OXjezfXTJ/rTUYW+JxEW2G5FNFpl7i5/jCxiOHns=; b=hpAPmu4gkPSxGEc/YSOw0M2USylWQczXq3dWqIGQ6Z1AZZzJyuaphIJS5FBHdeH2mw i95Mzw8QB2pzWNi8korOjLNon6x0GNYbLRdaCtzffS86lXRrYVUNZ4ZXMXz7prLF39iH qxK0ovg4Y32sOtoCe6FUQoMpkKkXLO1Gd3wVksPmyZyYVSbEXomTW6q0VAj5BqY0g7LL uP0RkLe9dSVLzxtAj0f+TMQQ+vOQ2APt7xXQkt4sW5RDgASGn2fuPLGL5/ihzXKIoAVo MuOGaeCGhiuvuG5GiQbU0aHatBKfMoyxJWqyq2BmD/am+ZUGdchsdeKtNbqWGsG3F27d aVIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si11999660eja.23.2020.06.23.18.57.13; Tue, 23 Jun 2020 18:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388334AbgFXB44 (ORCPT + 99 others); Tue, 23 Jun 2020 21:56:56 -0400 Received: from mail.loongson.cn ([114.242.206.163]:51132 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388035AbgFXB44 (ORCPT ); Tue, 23 Jun 2020 21:56:56 -0400 Received: from [10.130.0.66] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxb2ngsvJe9gdJAA--.10046S3; Wed, 24 Jun 2020 09:56:49 +0800 (CST) Subject: Re: [PATCH RESEND] net/cisco: Fix a sleep-in-atomic-context bug in enic_init_affinity_hint() To: David Miller References: <1592899989-22049-1-git-send-email-likaige@loongson.cn> <20200623.143311.995885759487352025.davem@davemloft.net> <20200623.152626.2206118203643133195.davem@davemloft.net> Cc: benve@cisco.com, _govind@gmx.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lixuefeng@loongson.cn, yangtiezhu@loongson.cn From: Kaige Li Message-ID: <7533075e-0e8e-2fde-c8fa-72e2ea222176@loongson.cn> Date: Wed, 24 Jun 2020 09:56:47 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20200623.152626.2206118203643133195.davem@davemloft.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9Dxb2ngsvJe9gdJAA--.10046S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYf7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7 Mxk0xIA0c2IEe2xFo4CEbIxvr21lc2xSY4AK67AK6w4l42xK82IYc2Ij64vIr41l4I8I3I 0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWU GVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI 0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0 rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr 0_GrUvcSsGvfC2KfnxnUUI43ZEXa7VU1ItC7UUUUU== X-CM-SenderInfo: 5olntxtjh6z05rqj20fqof0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/24/2020 06:26 AM, David Miller wrote: > From: David Miller > Date: Tue, 23 Jun 2020 14:33:11 -0700 (PDT) > >> Calling a NIC driver open function from a context holding a spinlock >> is very much the real problem, so many operations have to sleep and >> in face that ->ndo_open() method is defined as being allowed to sleep >> and that's why the core networking never invokes it with spinlocks > ^^^^ > > I mean "without" of course. :-) > >> held. Did you mean that open function should be out of spinlock? If so, I will send V2 patch. Thank you.