Re: [PATCH] scsi: smartpqi silence a recursive lock warning

Don.Brace
2026-04-16T14:14:11Z

________________________________________
From: Tomas Henzl <thenzl@redhat.com>
Sent: Tuesday, April 14, 2026 7:41 AM
To: linux-scsi@vger.kernel.org <linux-scsi@vger.kernel.org>
Cc: Don Brace - C33706 <Don.Brace@microchip.com>
Subject: [PATCH] scsi: smartpqi silence a recursive lock warning

On systems with multiple controllers debug kernel shows
WARNING: possible recursive locking detected
during shutdown.
Each controller does have its own ctrl_info (and mutex)
and that isn't correctly recognized by debug kernel.
Supress the warning by releasing the mutex at the end of pqi_shutdown.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>

Please fix spelling: Supress --- Suppress.
Thank-you for your patch.
Acked-by: Don Brace <don.brace@microchip.com>

---
drivers/scsi/smartpqi/smartpqi_init.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
index b4ed991976d0..2026ac645d6a 100644
--- a/drivers/scsi/smartpqi/smartpqi_init.c
+++ b/drivers/scsi/smartpqi/smartpqi_init.c
@@ -9427,6 +9427,7 @@ static void pqi_shutdown(struct pci_dev *pci_dev)

pqi_crash_if_pending_command(ctrl_info);
pqi_reset(ctrl_info);
+       pqi_ctrl_unblock_device_reset(ctrl_info);
}

static void pqi_process_lockup_action_param(void)
--
2.53.0