From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796458815; b=MFUfITonb/kZfC9NhOwld5Vjhmncz2cmRoa2OK2+ixDC7QyQcGBxlFCL3mA4Rgc1L8R7 kariU2GiTMRXVsdgKVgpckBsGBAcoQaFBHNXknpIzL/4tQQkXypP2bGT95G2Y7j8YmxX6 wunENyeBfwqK3kx5NQd2Ts7XfSlqUd9HoPQC41bDTUxUzpbJylMaHLlEA2C/7j7dh5D+O 8jG5EH0dDM1zI/CSL8szUyROTCHinEn6lYr+jkXFx9fnkwUbD+eFOjgG8BHVfuizHeQ/R Gp2HRNhhmvH/sNoEakvbpGECuiAg3fEVn+NRe8fInm9lUebejCZNDfVfpuykUPK4gAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796458815; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=aWBWbFkBCy/g6CBbiujTAQ8f893rVYorypRQE3PR4XY=; b=e0M+IbFD+lqqKvlHXljEEeme7xxnQuE9xj/FCQsLBjN5oVoT5MIbxssR9JMh/KE2hHf8 J39vKJ+jeW1SgouseF9bC1vSuM8JjLEr7KTg5vk3P6vUZQTZfpql2jswwDc8ye+kOHJZf 9vBUSJUDDdjweeCqb0zoPP5PDC2Xtj1wpsvP8z/vs0zbUVfJkI/vYi0HB4qtlzG76tapX w1SS6Lvb1J2DGvKEoDLJx5evQusvJ/gS3Mov4xiIdGB1Lzj3F4AzZAqdmL4ZpvDD/NT3C rrbEoaEyqXBPQAjHY24XxqsJS/XYLrie/wU0m/GfhbclrCSjTJ4knhEx8zzve7gfJ+g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=tl95jeD9; arc=none smtp.remote-ip=74.125.82.170 Received: from mail-dy1-f170.google.com (mail-dy1-f170.google.com [74.125.82.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 464C0606A32F for ; Sat, 5 Dec 2026 08:20:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 464C0606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=tl95jeD9 Received: by mail-dy1-f170.google.com with SMTP id 5a478bee46e88-38431138772so2448930eec.1 for ; Sat, 05 Dec 2026 00:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796458814; x=1797063614; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=aWBWbFkBCy/g6CBbiujTAQ8f893rVYorypRQE3PR4XY=; b=tl95jeD9LyXzLemvs9WEHIXQCdP0AsDd/hH+IVZuEoLwFfGOLdojwmfUr9iQatkQV2 qyzWWAZCuAHP62wz+PezNGMGw9KJo1vNZZW9583+A83sYltNN1ltVcqjadsbq0MUAtJE gqXzx+wOxp1JhHqOrXQ4Qm5QY98fxNXa7tzvtXrSaREUlEeZKAlCflPpCTYCWMg7bmL7 GHVZphYuESFPLPM+s/n0fsg+XFB+DuvNiMc1Kd8PyUo+liEE180vayKClkjOLR2ysc2n 5X/+e7Pa3nVPGWIA3d3vSALHhgXpyTQEXdXgt+gZurxaagU0ep3eWy2Sd15g12tsHNa8 QfcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796458814; x=1797063614; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=aWBWbFkBCy/g6CBbiujTAQ8f893rVYorypRQE3PR4XY=; b=YlU5VrV23xzBiMi7tnQk6bssNSLQCL9qfoZ5nbguswi7skp1AvG9DTDJwUMA9iowaS QjnQLexjV1qEq6lkz7ISOL4s+Cx4+uStozMrTPkpCUcmcYv4xhYYYqJdtGWlrKACGiTo iSSTJEazBYEx/ZGJmOgjgBFSOc7KrfdKWKHTIOGSsgh4vkVokydPzjjPy7rnlRTZZ5pK 1Xmzsix9eVDc/BbOsaIz0eqmZNLhp+v6l8QhtyDBd+Hu3vq5X3bYD4I4NWmyNaCMkhgZ SZ6PwQVB83LcH5HxoDzxdDdqJFxJ2AZU13w9kBK+rbjGTSF5nDFtxe3WedG1xgR0bqqH XmWw== X-Forwarded-Encrypted: i=1; AL+hErH7ovtEp1uj7NcrqYx3vJeBhkxb0VwlTp0aTFC5HTn0BicePV+QDqDQXSvwVpcW3fiRFX+yNjF0b9r9@vger.kernel.org X-Gm-Message-State: AB4q+uEJM/S5U1a/JTO4FrrbPQshexXDpB2YdIqOSFoWsnrCNNONmXwo LKAAfhgrY2u1Ge22Q7tc5sA1lVLgFIwyTeUo2qRLTAt0MPeEO6ndO19R X-Gm-Gg: AZFdTZeR6o51hB7skDo5nJszVliI1RhDXmacM6U4XAAESahCZNOGTyieE8YkjvPYya6 DIBDTDMjidn6cpk9/Mp/3hXA2lMGjJJ4JNz/0RVw/qEi9gfjQST9BfNIS4EYRM8jI6PbN45h5In 8bAmnO5n69/LY3yPZ4MZI2izbpbrHYKkKcG7R5hwc83eJe4wcMGCCwJ47gzgzTfe6FHCnvbOjar LQ13Gskb1C/aweo+iWhxIy/J+H2WMhiKOTF171iYgYuoIFI+bRs0Qjkq6ZsT7UasdldCrYUNL9w ItdQr7P81WuPcxZ87LqpQAAvcgVeL4by4kvkPkktwxAhQGRHz1pbKgGvGU8wIc68o3AXsdoMOC9 /r0T1Zxrjr+VEJlT6BbE9MhkhMakNqAOQjeg/BmcRlkrprYln/6jVGDLuIcpVqFRtBHNyidFQbX Mv0gMJnVglzUkiBvt/GTioGvJ2VqRWv45CMVQtiRsFTPTffRTIjm3KF57E4qQk8U0WKsXoiAvew jE1X1WqN1A5cjc0I7nMd4cZWGvQoCwA7aIoRhjqQnOhUL3e2C5iYYZn7X+M0otUYA8+UyMqBeCC rfqiOBsVgS0XpV/dkkU2lA2a2CKT+HOMMeykfZl1hn4/FbhXqJ8eHZ0oD3Jx1lvQFjg= X-Received: by 2002:a05:7300:f797:b0:376:b957:c08 with SMTP id 5a478bee46e88-387521559d6mr4337074eec.9.1796458814176; Sat, 05 Dec 2026 00:20:14 -0800 (PST) Received: from localhost.localdomain (wood.seclab.cs.ucsb.edu. [128.111.49.37]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-387521e5e7dsm17556621eec.19.2026.12.05.00.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 00:20:13 -0800 (PST) From: Praneeth Balasubramanian To: sashiko-reviews@lists.linux.dev Cc: "Martin K. Petersen" , "James E.J. Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/9] scsi: pmcraid: Take host_lock around scsi_report_bus_reset() Date: Sat, 5 Dec 2026 00:20:02 -0800 Message-Id: <20261205082002.2596378-1-praneethb2002@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: <20261205063229.2518424-1-praneethb2002@gmail.com> <20261205063229.2518424-4-praneethb2002@gmail.com> X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sat, 05 Dec 2026 06:43:45 +0000, sashiko-bot@kernel.org wrote: >> Add spin_lock_irqsave()/spin_unlock_irqrestore() around >> scsi_report_bus_reset() in both pmcraid_handle_error_log() and >> pmcraid_error_handler(). The other callers of scsi_report_bus_reset() >> in this driver already hold host_lock and are unchanged. > > [Severity: Low] > Are there any other callers of scsi_report_bus_reset() in this driver? > > pmcraid_handle_error_log() and pmcraid_error_handler() appear to be the only > two call sites in drivers/scsi/pmcraid.c; the only other mention is a comment > in pmcraid_ioa_reset(). Right, these are the only two callers. The last sentence of that paragraph is wrong and should go. The code change is not affected. Both call sites run from the completion tasklet, which calls cmd_done without host_lock for these commands, so taking the lock there does not nest. I will fix the changelog in v2. I will wait a few days for other comments on the series first.