scsi: pm80xx: Fix race condition caused by static variables

[ Upstream commit d6477ee38c ]

Eliminate the use of static variables within the log pull implementation
to resolve a race condition and prevent data gaps when pulling logs from
multiple controllers in parallel, ensuring each operation is properly
isolated.

Signed-off-by: Francisco Gutierrez <frankramirez@google.com>
Link: https://lore.kernel.org/r/20250723183543.1443301-1-frankramirez@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Francisco Gutierrez 2025-07-23 18:35:43 +00:00 • committed by Greg Kroah-Hartman
commit d31b2fa31d
3 changed files with 17 additions and 10 deletions