Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp224097pxb; Mon, 8 Feb 2021 21:17:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvilqsVn2WGqW/IOHOHx+6E5mOlE1H6d6+kEBL5YMUdLGZWocF7INpdyW3+b2PnRLehKLF X-Received: by 2002:aa7:d8da:: with SMTP id k26mr7403085eds.364.1612847856363; Mon, 08 Feb 2021 21:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612847856; cv=none; d=google.com; s=arc-20160816; b=rOPJSbK5psHbo3RFRtvTEF2pjtqV00zK3fGQ9NM5nudr9Yn6ChxnWpPZuVp35vB8Gz vvcb9+lxWrAHBjE967zWoPRYxC9r+WJ57T3t7l+gGaI8EiEwzed8Tn9q8GsYAdAjb8y5 xzvCy64tvkaAG4j0IcK6MLoMB/ZCsMwv+MyNjWekCF2FT6yAd9hclkshziX8hLSXqWgY R21Q3rOKkwGbRigNx/dex7yKzd7StObXzxb8/XNH22y+Rz8c+4ThJYEI1r17xyRsJVWI qhgApgdRKJ06qUoz+HdZM5w+WWD5aKV5505EdkeB2NbcQHceiqhCcHWlLvlvanM7AC+3 6r9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=XgE19K9fgtXmg/kAmF6f3Azt5BfGMVxtnUFuuZ8kP64=; b=1ASO3Y0Carl8a0KGBP55ZMq5+AmOZjcROXlIftLdvRVH1avPhtPyXZ7YAxXtmh2UdU 8NlPViuNcEHylqwM0Kqf35T1b2J7jE/dMh4XMYN7m8brlRWssuOMXBjVFyOnWIniw+Mj 1ghK5IIH8r/aQ88WyaTvqYUWYoJ7XXf3NjwIMyL2Kc9VsUEXDBWLkd9yvmZ92d5HOpM1 KcODiEZScdsUQHoScIi5eL7GfvU/ozT6emcLrNngpDjDqv+I8IqmrgAbzSOYooGtdcfk +Ag4uwCjaf5RNySqwMEdrE7pjgPElDi0qOh4mE2n4tXnxm4CYi9KasXJiP2jvnzThBM9 WbTA== 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 r20si13079296ejx.492.2021.02.08.21.17.12; Mon, 08 Feb 2021 21:17:36 -0800 (PST) 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 S230389AbhBIFNc (ORCPT + 99 others); Tue, 9 Feb 2021 00:13:32 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:50874 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbhBIFMV (ORCPT ); Tue, 9 Feb 2021 00:12:21 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id A65662B3DE; Tue, 9 Feb 2021 00:11:36 -0500 (EST) Date: Tue, 9 Feb 2021 16:11:40 +1100 (AEDT) From: Finn Thain To: tanxiaofei cc: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@openeuler.org, linux-m68k@vger.kernel.org Subject: Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers In-Reply-To: Message-ID: References: <1612697823-8073-1-git-send-email-tanxiaofei@huawei.com> <31cd807d-3d0-ed64-60d-fde32cb3833c@telegraphics.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Feb 2021, tanxiaofei wrote: > Hi Finn, > Thanks for reviewing the patch set. > > On 2021/2/8 15:57, Finn Thain wrote: > > On Sun, 7 Feb 2021, Xiaofei Tan wrote: > > > > > Replace spin_lock_irqsave with spin_lock in hard IRQ of SCSI drivers. > > > There are no function changes, but may speed up if interrupt happen too > > > often. > > > > This change doesn't necessarily work on platforms that support nested > > interrupts. > > > > Linux doesn't support nested interrupts anymore after the following > patch, so please don't worry this. > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e58aa3d2d0cc > Clearly that patch did not disable interrupts. It removed a statement that enabled them. > > Were you able to measure any benefit from this change on some other > > platform? > > > > It's hard to measure the benefit of this change. It's hard to see any benefit. But it's easy to see risk, when there's no indication that you've confirmed that the affected drivers do not rely on the irq lock, nor tested them for regressions, nor checked whether the affected platforms meet your assumuptions. > Hmm, you could take this patch set as cleanup. thanks. > A "cleanup" does not change program behaviour. Can you demonstrate that program behaviour is unchanged? > > Please see also, > > https://lore.kernel.org/linux-scsi/89c5cb05cb844939ae684db0077f675f@h3c.com/ > > > > . > > > >