Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1545207imm; Tue, 22 May 2018 05:52:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomeDWchuoiWtAjEO8ymPYbMrnux7MDznsNMqOBlp3tMS4KYKhvvDXFE0bGi1aYDO8R/u8w X-Received: by 2002:aa7:819a:: with SMTP id g26-v6mr24341969pfi.210.1526993524071; Tue, 22 May 2018 05:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526993524; cv=none; d=google.com; s=arc-20160816; b=uAlCb/woHShG8AhgeynOmJ7onBHj2mj8W4QPWyJWmYLUbSMTgH65XB4Goqyr9Lo8oE cY3cacZDVZd87ceu4wCwp8uJcKlYFG7E2X2qhKXQ3J7fePJ0mij6QLZ1psHehczV4caa 95dXOJJoFZ5hwCBQ/m1vDYWJbYPnqZPC/KFNwTp3l12IKtOCv89qgIhqk+fKyd7rTFfN sSd64B02moLUSb3Si/oJNdJGfXJPIkszYOcxiG0fKTd5+ijT5tUtLzRwCNDyp0AK0rO2 rv9lWEcObSoRiiepms54yF+0zbsB+Lnbki8LqbN51wn5gnqoviFnzqu2yDIGXptsbSLE a1ZQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=qLb2iXSnKru6SdU8Z2TrhRQW4REM6n+vCL20GvEBGsM=; b=xXuhHxbCOJfxd4pQgbufz0F6gvC/YPQ6k4waEGi37FdCyt1A6j0eeSoVhTcDpD979S fqjCN1hh9jg2AcmGiVG7JJ4pQTMGsJ8EDvOsC8R7iffL40FHYONbwOJppw2uUEsx0S2g 4ERpokDZc5E2bdxfOVemBYE23jswFy7l2Dlf9TpbWjyCPrzZbp37tvT1NArRQu8MwVSA RLSeYwpvZdsXB3IzLJZQnc4Be4an/3sXD6Ofm/B7knkNDqc8OMhBBr26N+QcvNSrxf5Z 5YMexqTI42JiKqtWLjseOiFOT40DsYVbIvKRs37fEcXIxMy7J2k2XsuE5HwbMplxcK3K u+QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b=QILszgt8; 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 q11-v6si15966884pll.15.2018.05.22.05.51.31; Tue, 22 May 2018 05:52:04 -0700 (PDT) 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; dkim=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b=QILszgt8; 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 S1751420AbeEVMuN (ORCPT + 99 others); Tue, 22 May 2018 08:50:13 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:46271 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbeEVMuI (ORCPT ); Tue, 22 May 2018 08:50:08 -0400 Received: by mail-io0-f194.google.com with SMTP id f21-v6so18282832iob.13 for ; Tue, 22 May 2018 05:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qLb2iXSnKru6SdU8Z2TrhRQW4REM6n+vCL20GvEBGsM=; b=QILszgt8jOL7Tqyu4nMfEhicE15fDPPvlproaQK8EYyq8oOfcL+ZPYsBQJav5lonc7 kzuKhnD94NE5gwt1Ye6p2hSPCU09x8g09ij7UvngATLDKhtOUcNryD2OFzYyfVmzy64h Hpe8dVWqIZ6nzY3XVFIkMDTP5BPcDW4fODivtwS3/5hGRaaCcQ2iyRXM1J0HSdnaoYc+ 85UGsDW9PHBFDE26h5Bs7NowXfejmRPK1gtpxClrTBUIE7STDPdvhu0cxozr47xzK+bD 9qTho2gqCS60XY4UAD89Rd+us18wKbIsOtm8KqSHgcXFje44zcvluaKP0VGSHIDOSdVd i4Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qLb2iXSnKru6SdU8Z2TrhRQW4REM6n+vCL20GvEBGsM=; b=skzKNe79ax3/5yTdIi59zEI3N+vbc8J71nzgnWHH/wsBNJsf/dpCFrd5BgV3gcixq/ 9tZ5/GvjpY+jemtm24AeAaKAtufQ4R/KyIk2dGGBzsMY0kt1GlEPJJZwFparfPOXYAQq MPxm4dF3473dHESRWU3kEFhG/XNP2yPWPlFfQ/WQWPMnAS9MhHZzNSLPnns0f4tj/hQX T0WzWD2GMdUSUEFkia+cIMCzfhm/gK8dAOukXZyqhjKQ7J2YijYXkupabVpM04d+Tfsl XflvFfgQM9PeiQKW8tLqzF04AkGFVt/uP96OUY47ODbFSqQAowSGsMM+Jlo34bgMobIT 9oQQ== X-Gm-Message-State: ALKqPweRhTu2yacwiW0L9bX3IvZg2BECOaWSfXTAcY8gV4nSUdrTT2oH CAyESjkQ3906YEl/aImRwxgVAu4Q X-Received: by 2002:a6b:1d8c:: with SMTP id d134-v6mr10831899iod.52.1526993408075; Tue, 22 May 2018 05:50:08 -0700 (PDT) Received: from [10.0.0.134] (198-84-205-232.cpe.teksavvy.com. [198.84.205.232]) by smtp.googlemail.com with ESMTPSA id z12-v6sm8770679iog.71.2018.05.22.05.50.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 05:50:07 -0700 (PDT) Subject: Re: [PATCH net-next v2] net: sched: don't disable bh when accessing action idr To: Vlad Buslov , davem@davemloft.net Cc: netdev@vger.kernel.org, xiyou.wangcong@gmail.com, jiri@resnulli.us, linux-kernel@vger.kernel.org References: <20180519.230258.1374885458106197707.davem@davemloft.net> <1526932984-11544-1-git-send-email-vladbu@mellanox.com> From: Jamal Hadi Salim Message-ID: <1719721d-35ed-7baa-6dec-c3f7f6fc79ff@mojatatu.com> Date: Tue, 22 May 2018 08:50:06 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1526932984-11544-1-git-send-email-vladbu@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/18 04:03 PM, Vlad Buslov wrote: > Initial net_device implementation used ingress_lock spinlock to synchronize > ingress path of device. This lock was used in both process and bh context. > In some code paths action map lock was obtained while holding ingress_lock. > Commit e1e992e52faa ("[NET_SCHED] protect action config/dump from irqs") > modified actions to always disable bh, while using action map lock, in > order to prevent deadlock on ingress_lock in softirq. This lock was removed > from net_device, so disabling bh, while accessing action map, is no longer > necessary. > > Replace all action idr spinlock usage with regular calls that do not > disable bh. > > Signed-off-by: Vlad Buslov Acked-by: Jamal Hadi Salim cheers, jamal