mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
scsi: target: core: Fix warning on realtime kernels
[ Upstream commit 515da6f429 ]
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>
This commit is contained in:
parent
a61156314b
commit
5d5f0d945d
|
|
@ -3038,9 +3038,7 @@ __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop,
|
||||||
__releases(&cmd->t_state_lock)
|
__releases(&cmd->t_state_lock)
|
||||||
__acquires(&cmd->t_state_lock)
|
__acquires(&cmd->t_state_lock)
|
||||||
{
|
{
|
||||||
|
lockdep_assert_held(&cmd->t_state_lock);
|
||||||
assert_spin_locked(&cmd->t_state_lock);
|
|
||||||
WARN_ON_ONCE(!irqs_disabled());
|
|
||||||
|
|
||||||
if (fabric_stop)
|
if (fabric_stop)
|
||||||
cmd->transport_state |= CMD_T_FABRIC_STOP;
|
cmd->transport_state |= CMD_T_FABRIC_STOP;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user