提交 84ed64b1 编写于 作者: M Maurizio Lombardi 提交者: Martin K. Petersen

scsi: target: core: Fix warning on RT kernels

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: NMaurizio Lombardi <mlombard@redhat.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230110125310.55884-1-mlombard@redhat.comSigned-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 f58c8970
...@@ -73,8 +73,8 @@ static bool __target_check_io_state(struct se_cmd *se_cmd, ...@@ -73,8 +73,8 @@ static bool __target_check_io_state(struct se_cmd *se_cmd,
{ {
struct se_session *sess = se_cmd->se_sess; struct se_session *sess = se_cmd->se_sess;
assert_spin_locked(&sess->sess_cmd_lock); lockdep_assert_held(&sess->sess_cmd_lock);
WARN_ON_ONCE(!irqs_disabled());
/* /*
* If command already reached CMD_T_COMPLETE state within * If command already reached CMD_T_COMPLETE state within
* target_complete_cmd() or CMD_T_FABRIC_STOP due to shutdown, * target_complete_cmd() or CMD_T_FABRIC_STOP due to shutdown,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册