]> git.baikalelectronics.ru Git - kernel.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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Jun 2021 02:59:13 +0000 (22:59 -0400)
commit02a030a1ec3f3d55f0d437a32c05dec56814701a
tree8eb5167cddd810a04118d9edf4f5edbfc613ed63
parentf320c618bce5dea53158dbe2742c50c6dcd4decd
scsi: target: core: Fix warning on realtime kernels

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>
drivers/target/target_core_transport.c