]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: core: Fix warning on RT kernels
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 10 Jan 2023 12:53:10 +0000 (13:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:12 +0000 (11:28 +0100)
commitf0287db90498a256c7f59cfb6c243c537f7b7f3a
tree3aa05e092ac7795cdc57c2abac22377bbef3a452
parentcde24e8f1a02350980bc70411679434b3623119b
scsi: target: core: Fix warning on RT kernels

[ Upstream commit 84ed64b1a7a7fcd507598dee7708c1f225123711 ]

Calling spin_lock_irqsave() does not disable the interrupts on realtime
kernels, remove the warning and replace assert_spin_locked() with
lockdep_assert_held().

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230110125310.55884-1-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_tmr.c