Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp142489pxb; Mon, 8 Feb 2021 18:03:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgQBw6UF89MReBkXxehAtiODepHN/vNkHFbHqxxnWwQs7hHiqWg99vYV5hEgC9EnmYJrKz X-Received: by 2002:a05:6402:1484:: with SMTP id e4mr20587834edv.104.1612836230769; Mon, 08 Feb 2021 18:03:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612836230; cv=none; d=google.com; s=arc-20160816; b=Ra8uRPbLjFJh7JwuPbuo9m51cYgpt1OpOPp8Vni/XVTMlSVquJmhIQp81KNrT3YDLx XfNAhYzhqOF1AmK084pmPQmDjAKPmoHMHQo0tg8dwIJWUY6vdSkuG5zfQM0YTUBDbGTL ZSMfsDGfP9hZylepj5fD/rrO9Lh+TNZxIetxnVrEdl/DZO83v75Pl5q9nF3iWEubTUgw jxdHrjr2/eWvkohsN5NxLZIbGq+jBZqzxSZ39qC1B3xcwGQhw8xWcMaHdqilhayo5cJt WIqLhOItJg+c6eAFRbWSLv+SH4t6KjJspjreo2K6Y+AhEgvcIIQanO+vXLgVm2DuXvFP YvEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=1o7iioblDtarOGChJ40knR0tg4XfuVJMOazHbqvFhyk=; b=g+UTcwUrgKLWhBujEQi6JcBuOqnS5+sc6fWnkOrOGx+kR8yZebwtfuv4XACISukYrJ Ao8V5GiGAlUJg5eqtrqFHRS7YJ4Y5nuW0GSKt7uF+xLx8mEhoM10FAXHeetNFzespBkG /apU0NXtS1sHaezUPhZjBkNt/XngYTkLoleIDvLLnrYrrKmEK32BTaqbuw514czNjHZd Y33M1UMxSUnZ2hzADxbuot0VXrLn6ljDdE3c9A7qihL1qsITkQfA2v0I0naQQI26XFM3 DMolr7A0lpCxFyp5ns0YYtQqpsNBGO+d4OVMZBxlhCHcvDJeNpLotf/OrHa6glgY+lbd pnrA== 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 mc16si5729498ejb.51.2021.02.08.18.03.27; Mon, 08 Feb 2021 18:03:50 -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 S231126AbhBICBf (ORCPT + 99 others); Mon, 8 Feb 2021 21:01:35 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:12872 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbhBICBJ (ORCPT ); Mon, 8 Feb 2021 21:01:09 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DZQzr14rSz7j5y; Tue, 9 Feb 2021 09:59:04 +0800 (CST) Received: from [127.0.0.1] (10.40.192.162) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 9 Feb 2021 10:00:22 +0800 Subject: Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers To: Finn Thain References: <1612697823-8073-1-git-send-email-tanxiaofei@huawei.com> <31cd807d-3d0-ed64-60d-fde32cb3833c@telegraphics.com.au> CC: , , , , From: tanxiaofei Message-ID: Date: Tue, 9 Feb 2021 10:00:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <31cd807d-3d0-ed64-60d-fde32cb3833c@telegraphics.com.au> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.192.162] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Were you able to measure any benefit from this change on some other > platform? > It's hard to measure the benefit of this change. Hmm, you could take this patch set as cleanup. thanks. > Please see also, > https://lore.kernel.org/linux-scsi/89c5cb05cb844939ae684db0077f675f@h3c.com/ > > . >