Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp58883img; Tue, 19 Mar 2019 17:51:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2P3G1BR4DBs6SMIar/zn/1b9h49cOwhFsrb/tr5FQTpF6CIvmO5XyImX2oMAB+ncR5FUv X-Received: by 2002:a17:902:b196:: with SMTP id s22mr5382166plr.33.1553043072337; Tue, 19 Mar 2019 17:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553043072; cv=none; d=google.com; s=arc-20160816; b=Lj7lNDuNLu/kurP0PdoNYKxaqcqDDnlXpXKRwemieiuvS7KzjUCIvVm8kfFwSotuVa h13gduMg7ySh0w2dOpp0/smCW9DDl+qZ9o/XFnkG7g15xosI24uDHbroPxGLwrruWfQc XNT7TQCvNeSNcChNhBnfvszjUkAkaR+nS8cUrs3Tdz7tDTzWCjcuGrgJ3uWFuzCL7hl9 Ft00kiU2tkR3VtfvxMRd63bSmT6V+Wacn5fni1QiXtIas/wRlKQ5Ll2/OlgMUyvpdZiI OIJIzouSO0CVciEBI9sx03A+lDHkCH25quGwnmo24Wu+BRTTejB0yjpLc0okZ/NZvZM3 FtZQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=V6ZmU8RH3kZEJ7cTWiZiVzlEIo9tb9b5FAkkpXmhF+M=; b=Qu7IRMuoi9wo8LVLDSJ7PLKggwmFw8qzU1PPAECABuooHzsCpSnfq6G7ROVj2fZ3EJ IdcwoPTKVgFCyE7IBGcf+r8o1qKGmEuTZ3eWliNPg1piUixJJrDspzfdnPuL0EHcMZ0X 2E3te70NEWI0cMhmOca1ZHh97VkVaMT7Zk/PtIwLBFUGq0kGZ678tiS7wdLLb0QaSyHT DLB73+H2DxgP7sAOzrnCAbbfVpdZdq7H7WmCa4WtOw+jHjQkdSIi7mp/LTadr/Y9RFlF VoZWfkoC6rFRHNSKw4o2d5fTFfi43m21NgRsLeAcbtcEZPQHl1gtpZOF5LCa2ai4RCIi FPMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hUfr4toC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26si343579pgf.81.2019.03.19.17.50.57; Tue, 19 Mar 2019 17:51:12 -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=@gmail.com header.s=20161025 header.b=hUfr4toC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbfCTAtY (ORCPT + 99 others); Tue, 19 Mar 2019 20:49:24 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:51505 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbfCTAtY (ORCPT ); Tue, 19 Mar 2019 20:49:24 -0400 Received: by mail-it1-f195.google.com with SMTP id e24so29071001itl.1; Tue, 19 Mar 2019 17:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=V6ZmU8RH3kZEJ7cTWiZiVzlEIo9tb9b5FAkkpXmhF+M=; b=hUfr4toCN2xzTgVy6w6QSckL2xcIfyJP/j8iVR+WDbxTMHrygNbZQ+WfxazwC8hVVa jQqyBtLUkhpH+D4cdsiFGsF4Bi7+2WsvF78T0dj7PUeTfm1F3voTcq40gZSOHRefGYJk rwRy/qc+212PQcfwmqsyqu187dNdVBgCNBtO0m+q79IwC7wZTXO5YGPX4YfrR6SusSs6 b92InqktY9WtHrYsQ8ldYrjJ8u2n16Zi6Kyn2+RQTM9URxekXZBd+DfWEVQjo6M04lL4 0Zukc8vA3oE+wQCW58HXP5aM6eHeKzqAsq06NI0J5wIZyNf3MIq4RcHdogZd7kjBzjw9 5XRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=V6ZmU8RH3kZEJ7cTWiZiVzlEIo9tb9b5FAkkpXmhF+M=; b=Kb8Tre+39Josw1WFJgzr/UnFafh5RNRwgq8MOe2DXihLSfJqy1aidVPk5Dqk2zzYLO 2p73tb18U7k0FWyD9u0lYutXYhEboJSc7hnqlNzJkDIUWpFYEexgoHNJn+oFQork+UBh 6/sP5kP24MxPNgU6Y3hVYzEZ9G328gFn6G9AH8X0Ugf4yIlHIbnYjRm0PaGekBnOgRVH b0jLsUhDPoaSGP8Eu53nXaj6qILBQj4h/GvSQMFV5cvXzxWOYvNcOSJsQdyO9qiY0h3f Qd1ExbW8UrBRyJRmaTypsSWVMJ8QXc1IRWsq0PLo0JqUma/r2gxfblgXdsNi6tXjIN26 PqWA== X-Gm-Message-State: APjAAAVrJCesqDISWDaptLlaFewTnUoKRN76GKlfCfqQPm7kCVH621e+ hRFZ/FQyUQLOKqpwqOH9ExFISmAULPVmI6fMoulEVRsCgmTTug== X-Received: by 2002:a24:7294:: with SMTP id x142mr2994668itc.26.1553042963541; Tue, 19 Mar 2019 17:49:23 -0700 (PDT) MIME-Version: 1.0 References: <1553013397-29263-1-git-send-email-chongguiguzi@gmail.com> <20190319192242.GA3773@ziepe.ca> In-Reply-To: <20190319192242.GA3773@ziepe.ca> From: =?UTF-8?B?6LCi5qyi?= Date: Wed, 20 Mar 2019 08:49:12 +0800 Message-ID: Subject: Re: [PATCH] infiniband:qplib_fp:move spin_lock_bh to spin_lock in tasklet To: Jason Gunthorpe Cc: selvin.xavier@broadcom.com, devesh.sharma@broadcom.com, somnath.kotur@broadcom.com, sriharsha.basavapatna@broadcom.com, dledford@redhat.com, nux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It was only called in the tasklet context. root@jeff:~/git/linux-next# git grep -in bnxt_qplib_service_nq drivers/infiniband/hw/bnxt_re/qplib_fp.c:236:static void bnxt_qplib_service_nq(unsigned long data) drivers/infiniband/hw/bnxt_re/qplib_fp.c:390: tasklet_init(&nq->worker, bnxt_qplib_service_nq, thanks. Jason Gunthorpe =E4=BA=8E2019=E5=B9=B43=E6=9C=8820=E6=97=A5= =E5=91=A8=E4=B8=89 =E4=B8=8A=E5=8D=883:22=E5=86=99=E9=81=93=EF=BC=9A > > On Wed, Mar 20, 2019 at 12:36:37AM +0800, Jeff Xie wrote: > > It is unnecessary to call spin_lock_bh in a tasklet. > > > > Signed-off-by: Jeff Xie > > --- > > drivers/infiniband/hw/bnxt_re/qplib_fp.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > I'm curious, how did you prove this was always in a tasklet? > > Jason --=20 jeff