Commit 1e4ffb83 authored by Jules Irenge's avatar Jules Irenge Committed by Martin K. Petersen

scsi: libsas: Add missing annotation for sas_ata_qc_issue()

Sparse reports a warning at sas_ata_qc_issue()

warning: context imbalance in sas_ata_qc_issue() - unexpected unlock
The root cause is the missing annotation at sas_ata_qc_issue()

Add the missing __must_hold(ap->lock) annotation

Link: https://lore.kernel.org/r/20200411001933.10072-7-jbi.octave@gmail.comReviewed-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarJules Irenge <jbi.octave@gmail.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4a0b746f
...@@ -160,6 +160,7 @@ static void sas_ata_task_done(struct sas_task *task) ...@@ -160,6 +160,7 @@ static void sas_ata_task_done(struct sas_task *task)
} }
static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc) static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
__must_hold(ap->lock)
{ {
struct sas_task *task; struct sas_task *task;
struct scatterlist *sg; struct scatterlist *sg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment