From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 013.lax.mailroute.net (013.lax.mailroute.net [199.89.1.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B895339D6DE for ; Thu, 30 Apr 2026 18:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777573326; cv=none; b=cbZZhJV1LE49nTHkCyFSjFBIZFgvsewNaXRVwFqWtommBmJXXosDX2p3wSMq6vqwxtHzVD1WEHBZj+1KegVbhrflqff0HMJB1Nx92gM6JLlh8L+Aef/kBT3Vwzzshl0vOg81C4jstgVs4FY4+gZ0WKdoS6/7YOfTmfdD+CirL+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777573326; c=relaxed/simple; bh=1ENnRbW+KwQhnmzgpw6VNl0JjGhszm4LBCOTPFBiS80=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iwNOibw6/oazpp/HV9AHIMJX5YDIhRU0yaHHwe0RbEYNVXrCov7OxZrqWcnVBUzniQlH3TXlE8Bf6xGzFUeKCD89tO6x8gTuwkBAbPaoQNXGDbnjTW6LpnC9mVnzu/L78aixB06rIQu7gD4CKFs2KxfG9Q8QxWkZJtc6t7e6z90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=vkj6/Cgl; arc=none smtp.client-ip=199.89.1.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="vkj6/Cgl" Received: from localhost (localhost [127.0.0.1]) by 013.lax.mailroute.net (Postfix) with ESMTP id 4g62ZP3kJNzm1W15; Thu, 30 Apr 2026 18:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mr01; t=1777573322; x=1780165323; bh=936lz P54ESjJgj55qwK5i6f24mKocosE/EXtnEOqjp4=; b=vkj6/CglrmDjkEIKTSq4r W9PcBRl73KviguEGpwglJ7CT8nhloCns72cM8EvHXZyA+Vvc/BIOK6RAefdoEUGV OMAZJiCPWGv8tqLcblcFJnVHJfDQRCgKFoYuXQsMerDTR8iV0sPDE3ewpRui76PU hb4/iuB3Jd5koUoduxO/bDSz6j8qY2XWD/UCOLqffq2RfzMyvf7SWvQhuA/oU27D J9cPUZyKlX/xmr69DU30JsnuX+sNnq5pjAS08sI4nH4elvATpcWyk7uDR3HJ17z+ dBqqD6xuiGCuXQiKU9agg1m0mz5SunM+m5GaO6Bp0G7N2RxT/zvMbyAp4KCnpfZj A== X-Virus-Scanned: by MailRoute Received: from 013.lax.mailroute.net ([127.0.0.1]) by localhost (013.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id 8MaNOG6XA4Iw; Thu, 30 Apr 2026 18:22:02 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 013.lax.mailroute.net (Postfix) with ESMTPSA id 4g62ZJ13s0zlfftm; Thu, 30 Apr 2026 18:21:59 +0000 (UTC) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Marco Elver , Bart Van Assche , Khalid Aziz , "James E.J. Bottomley" Subject: [PATCH v2 05/56] scsi: BusLogic: Introduce a local variable Date: Thu, 30 Apr 2026 11:19:35 -0700 Message-ID: <20260430182130.1978347-6-bvanassche@acm.org> X-Mailer: git-send-email 2.54.0.545.g6539524ca2-goog In-Reply-To: <20260430182130.1978347-1-bvanassche@acm.org> References: <20260430182130.1978347-1-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Introduce a new local variable to prepare for enabling thread-safety analysis. No functionality has been changed. Signed-off-by: Bart Van Assche --- drivers/scsi/BusLogic.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 5304d2febd63..e3790ff24e56 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -2886,6 +2886,7 @@ static enum scsi_qc_status blogic_qcmd_lck(struct s= csi_cmnd *command) struct blogic_tgt_flags *tgt_flags =3D &adapter->tgt_flags[command->device->id]; struct blogic_tgt_stats *tgt_stats =3D adapter->tgt_stats; + struct Scsi_Host *const shost =3D command->device->host; unsigned char *cdb =3D command->cmnd; int cdblen =3D command->cmd_len; int tgt_id =3D command->device->id; @@ -2915,9 +2916,9 @@ static enum scsi_qc_status blogic_qcmd_lck(struct s= csi_cmnd *command) */ ccb =3D blogic_alloc_ccb(adapter); if (ccb =3D=3D NULL) { - spin_unlock_irq(adapter->scsi_host->host_lock); + spin_unlock_irq(shost->host_lock); blogic_delay(1); - spin_lock_irq(adapter->scsi_host->host_lock); + spin_lock_irq(shost->host_lock); ccb =3D blogic_alloc_ccb(adapter); if (ccb =3D=3D NULL) { command->result =3D DID_ERROR << 16; @@ -3062,10 +3063,10 @@ static enum scsi_qc_status blogic_qcmd_lck(struct= scsi_cmnd *command) be initiated soon. */ if (!blogic_write_outbox(adapter, BLOGIC_MBOX_START, ccb)) { - spin_unlock_irq(adapter->scsi_host->host_lock); + spin_unlock_irq(shost->host_lock); blogic_warn("Unable to write Outgoing Mailbox - Pausing for 1 second\= n", adapter); blogic_delay(1); - spin_lock_irq(adapter->scsi_host->host_lock); + spin_lock_irq(shost->host_lock); if (!blogic_write_outbox(adapter, BLOGIC_MBOX_START, ccb)) { blogic_warn("Still unable to write Outgoing Mailbox - Host Adapter D= ead?\n", adapter);