]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: smartpqi: Fix rmmod stack trace
authorDon Brace <don.brace@microchip.com>
Tue, 1 Feb 2022 21:47:53 +0000 (15:47 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Feb 2022 04:38:33 +0000 (23:38 -0500)
commita1e22ff5a3f548af6febe271c77d86443dc2778e
treebe4f8a73f9c2d0fe5071205f4b41af848ac2abca
parent16640efa6b4ba36cd32040201659112ca742505f
scsi: smartpqi: Fix rmmod stack trace

Prevent "BUG: scheduling while atomic: rmmod" stack trace.

Stop setting spin_locks before calling OS functions to remove devices.

Link: https://lore.kernel.org/r/164375207296.440833.4996145011193819683.stgit@brunhilda.pdev.net
Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c