]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: target: core: Fix warning on realtime kernels
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 31 May 2021 12:13:26 +0000 (14:13 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:11 +0000 (08:48 -0400)
commit8fa2bb8837ea92f725e63ec38935195bc0266668
tree10a5af5d918c271017c02df03e3b7e9556f3685d
parent094bf5670e762afa243d2c41a5c4ab71c7447bf4
scsi: target: core: Fix warning on realtime kernels

[ Upstream commit 515da6f4295c2c42b8c54572cce3d2dd1167c41e ]

On realtime kernels, spin_lock_irq*(spinlock_t) do not disable the
interrupts, a call to irqs_disabled() will return false thus firing a
warning in __transport_wait_for_tasks().

Remove the warning and also replace assert_spin_locked() with
lockdep_assert_held()

Link: https://lore.kernel.org/r/20210531121326.3649-1-mlombard@redhat.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/target/target_core_transport.c