提交 cb0df4d3 编写于 作者: B Bart Van Assche 提交者: Nicholas Bellinger

target: Fix two sparse warnings

Avoid that sparse complains about context imbalances.
Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 c8e63985
...@@ -1236,6 +1236,8 @@ static void __core_scsi3_free_registration( ...@@ -1236,6 +1236,8 @@ static void __core_scsi3_free_registration(
struct t10_pr_registration *pr_reg, struct t10_pr_registration *pr_reg,
struct list_head *preempt_and_abort_list, struct list_head *preempt_and_abort_list,
int dec_holders) int dec_holders)
__releases(&pr_tmpl->registration_lock)
__acquires(&pr_tmpl->registration_lock)
{ {
const struct target_core_fabric_ops *tfo = const struct target_core_fabric_ops *tfo =
pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo;
......
...@@ -1602,6 +1602,8 @@ EXPORT_SYMBOL(target_submit_tmr); ...@@ -1602,6 +1602,8 @@ EXPORT_SYMBOL(target_submit_tmr);
* has completed. * has completed.
*/ */
bool target_stop_cmd(struct se_cmd *cmd, unsigned long *flags) bool target_stop_cmd(struct se_cmd *cmd, unsigned long *flags)
__releases(&cmd->t_state_lock)
__acquires(&cmd->t_state_lock)
{ {
bool was_active = false; bool was_active = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册