Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5802535imm; Tue, 12 Jun 2018 13:40:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJuuX2CjvpN6teuwpPc0VVZ0UcStrC9q1mjQb2QycDSXuFSOWh6gtWwxvg5GRcHLUNvVGNK X-Received: by 2002:a62:968f:: with SMTP id s15-v6mr1918708pfk.191.1528836006190; Tue, 12 Jun 2018 13:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528836006; cv=none; d=google.com; s=arc-20160816; b=Vqi7meK5JUCaRUPkDLW+KAr8sjNamgB4bws5PFKBf6I5MP/H+LAVNi3/2FZDZTnNM3 lmMRWuKZKWQ/VNYEY5BkkGGeO3c247M7ZycFChQqv2Fwkz7tWa6LgG4W8tB5TSURiVFx WyvDNKCFFoNxvVzb1gVosB8OwxPwMz0PbIV0gFsIl6H3vTbK/rlhjm9uShuPEpdDaZcb QW3JcG7AGfbuWQOH1BtN75Y24COlgZXmbJ7qqtwnS0p4u0nRJrb94J3h2IqWS+wI2cxj e5hEt+Jrgvps2yMejN3BbI3D/m/344IGoUXIrhy7D36/0782OIpoIqYQURJPrSsQf6kM Iz3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=z432vuSKJQmbmG0J1IBk7+FGFTocRKF90+w5tJ26MC8=; b=QkZbrkiqfP5cervlI+ptycdLCMCWjURReflm+uZ9c+fYUbX/tL3aJegHdAkkQs31Hw sb3IMsrUotSQgbe2C/re6EaTAGT3rJlQ+Ei6e4NX3hUAOLSqgveeKGJFvSBmfuUXFAD5 ig/nD2UlMV4pN224/9JZinJftQLO1gqRyUEUBERq/YdFl7rnWVMy/2PlmLuJEfFrzMPZ CQc3ofHigIjszrfCk3JgKVhgn5s8AcJS9yRCMDUzNmsHWBTUWEEWn2KQuuZ4Svqp0c6h mPMb6SLx5sTpy0vV0xFWa4NNCIHZ/nuRfRCfHzhuZdR+8oFvZq5paaov1XdWf0r6NSky Eojw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=FesqvtWx; 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 n9-v6si765681pgv.501.2018.06.12.13.39.51; Tue, 12 Jun 2018 13:40:06 -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=@ziepe.ca header.s=google header.b=FesqvtWx; 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 S1754406AbeFLUig (ORCPT + 99 others); Tue, 12 Jun 2018 16:38:36 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44027 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325AbeFLUie (ORCPT ); Tue, 12 Jun 2018 16:38:34 -0400 Received: by mail-wr0-f193.google.com with SMTP id d2-v6so356741wrm.10 for ; Tue, 12 Jun 2018 13:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z432vuSKJQmbmG0J1IBk7+FGFTocRKF90+w5tJ26MC8=; b=FesqvtWxWnqvsWQLN1uXJ/lEZI2+o/Yr7UDgAhsQ94cEqOV87ViEa/rQg4Egq6FVux 3PCYP1e8p7iwsjpguoXxti4gpNqZZQi85aQdo3ePJsAeKMhhpRUKgSyxppio8Oa1V9Jr gp1PM8GzC36bO4/8B4sSj0vP+wQwo8teC3QjunsqaDV8CkhXXf+gaX7a5yWUas2/sLSd HiGJyYiDc5saFj8PYzbi2BswZ3m8gOp5ye5v7K+iEzzamEDtAD4LST3uXi12oYT2mLcp wXyeC0PAwAceeDaO9mmUg4HhL1foL4JHpJ1TL1YFEyF8fYIa94vIOfrWrjVkDvJNJE72 ZrAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z432vuSKJQmbmG0J1IBk7+FGFTocRKF90+w5tJ26MC8=; b=tdcvFVc0V34m8u99R3PthC4KQs5fvUm+PTkB4fiU0fN53Akl52B0o3YYZPHvjh+B7o BlGgRwKDxI5vKViD8OO6gDGlRSn7DTelE9S54XTNfK91HmWLgXvDcPwCh7dhytPyvgJ3 1QoEc7czb5ETKJwzUwe6a6Rhm6p3dLBvtadWvTz9GYsUJgUhcSJMisXqFLAN0sHsGKST sHA6AtlN1ZmAx9i9XN46Nle8+lKwmLmErJPMYeLIDOkBnrkRG8u3tNbIEoQgM9yO31jz kfRQSiUAUMGfNLQ+aEc5fphayv4Nzev70lRvOLTBJ3rgjR3oBsoWuZqsNRTmIJVWkEsL E9Dw== X-Gm-Message-State: APt69E3BtKX8Sjf8dVcsVpar24Ohh+s77GvjYjwF95ObW/zi28BrYzYt RW8tCCUaL26GoeRNZNEnzPb08w== X-Received: by 2002:adf:e644:: with SMTP id b4-v6mr1928684wrn.254.1528835913460; Tue, 12 Jun 2018 13:38:33 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id u108-v6sm2041503wrc.40.2018.06.12.13.38.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 13:38:32 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1fSq3g-0008LD-Rd; Tue, 12 Jun 2018 14:38:28 -0600 Date: Tue, 12 Jun 2018 14:38:28 -0600 From: Jason Gunthorpe To: Matthew Wilcox Cc: hans.westgaard.ry@oracle.com, Doug Ledford , Matthew Wilcox , linux-rdma@vger.kernel.org, =?utf-8?B?SMOla29u?= Bugge , Parav Pandit , Jack Morgenstein , Pravin Shedge , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] IB/mad: Agent registration is process context only Message-ID: <20180612203828.GH6314@ziepe.ca> References: <20180608174218.32455-1-willy@infradead.org> <20180608174218.32455-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180608174218.32455-2-willy@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 08, 2018 at 10:42:17AM -0700, Matthew Wilcox wrote: > From: Matthew Wilcox > > Document this (it's implicitly true due to sleeping operations already > in use in both registration and deregistration). Use this fact to use > spin_lock_irq instead of spin_lock_irqsave. This improves performance > slightly. > > Signed-off-by: Matthew Wilcox > --- > drivers/infiniband/core/mad.c | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) In the mean time, this patch is straightfoward, applied to the interm for-next.. Jason