Files
linux-stable-mirror/drivers/scsi
Ranjan Kumar 48a1795cbf scsi: mpi3mr: Fix race between config read submit and interrupt completion
commit e6327c4acf upstream.

The "is_waiting" flag was updated after calling complete(), which could
lead to a race where the waiting thread wakes up before the flag is
cleared. This may cause a missed wakeup or stale state check.

Reorder the operations to update "is_waiting" before signaling completion
to ensure consistent state.

Fixes: 824a156633 ("scsi: mpi3mr: Base driver code")
Cc: stable@vger.kernel.org
Co-developed-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20250627194539.48851-2-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:28 +02:00
..
2025-08-28 16:24:23 +02:00
2024-07-27 10:46:07 +02:00
2024-04-10 16:19:41 +02:00
2024-04-10 16:19:41 +02:00
2024-07-27 10:46:07 +02:00
2024-07-27 10:46:07 +02:00
2024-09-04 13:23:22 +02:00
2023-06-09 10:32:29 +02:00