scsi: libsas: Add missing annotation for sas_ata_qc_issue()
authorJules Irenge <jbi.octave@gmail.com>
Sat, 11 Apr 2020 00:19:30 +0000 (01:19 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Apr 2020 01:46:15 +0000 (21:46 -0400)
commit1e4ffb8344c53b3d8297c9591c59debe4406e6cb
treeca00038f378bfc90e48db71978174b740de74242
parent4a0b746fa9a7e7936fa4511116aab5a98d1af49a
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.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_ata.c