diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-04-10 08:49:02 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-14 15:37:38 -0400 |
commit | cb0df4d30105416ef1b4f9845c4ba96569dce587 (patch) | |
tree | 2719ebd6b077e4896970e74db2fb18bbe13a8a70 /drivers/target | |
parent | c8e639852ad720499912acedfd6b072325fd2807 (diff) |
target: Fix two sparse warnings
Avoid that sparse complains about context imbalances.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_pr.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_transport.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c index 963a67729b65..c1aa9655e96e 100644 --- a/drivers/target/target_core_pr.c +++ b/drivers/target/target_core_pr.c | |||
@@ -1236,6 +1236,8 @@ static void __core_scsi3_free_registration( | |||
1236 | struct t10_pr_registration *pr_reg, | 1236 | struct t10_pr_registration *pr_reg, |
1237 | struct list_head *preempt_and_abort_list, | 1237 | struct list_head *preempt_and_abort_list, |
1238 | int dec_holders) | 1238 | int dec_holders) |
1239 | __releases(&pr_tmpl->registration_lock) | ||
1240 | __acquires(&pr_tmpl->registration_lock) | ||
1239 | { | 1241 | { |
1240 | const struct target_core_fabric_ops *tfo = | 1242 | const struct target_core_fabric_ops *tfo = |
1241 | pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; | 1243 | pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 47334e5c47bf..0b8411f8de85 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1602,6 +1602,8 @@ EXPORT_SYMBOL(target_submit_tmr); | |||
1602 | * has completed. | 1602 | * has completed. |
1603 | */ | 1603 | */ |
1604 | bool target_stop_cmd(struct se_cmd *cmd, unsigned long *flags) | 1604 | bool target_stop_cmd(struct se_cmd *cmd, unsigned long *flags) |
1605 | __releases(&cmd->t_state_lock) | ||
1606 | __acquires(&cmd->t_state_lock) | ||
1605 | { | 1607 | { |
1606 | bool was_active = false; | 1608 | bool was_active = false; |
1607 | 1609 | ||