scsi: pm8001: Enable lock context analysis

Document locking requirements with __must_hold().

Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/e51355852d4a14478545bc9bb5fd9af9fd947bf4.1790360262.git.bvanassche@acm.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
Bart Van Assche 2026-09-25 11:26:21 -07:00 committed by Martin K. Petersen (Oracle)
parent 202aeb5af5
commit 74688075dd
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#
# Copyright (C) 2008-2009 USI Co., Ltd.
CONTEXT_ANALYSIS := y
obj-$(CONFIG_SCSI_PM8001) += pm80xx.o

View File

@ -2294,6 +2294,7 @@ static void mpi_ssp_event(struct pm8001_hba_info *pm8001_ha, void *piomb)
static void
mpi_sata_completion(struct pm8001_hba_info *pm8001_ha,
struct outbound_queue_table *circularQ, void *piomb)
__must_hold(&circularQ->oq_lock)
{
struct sas_task *t;
struct pm8001_ccb_info *ccb;
@ -3856,6 +3857,7 @@ static int ssp_coalesced_comp_resp(struct pm8001_hba_info *pm8001_ha,
*/
static void process_one_iomb(struct pm8001_hba_info *pm8001_ha,
struct outbound_queue_table *circularQ, void *piomb)
__must_hold(&circularQ->oq_lock)
{
__le32 pHeader = *(__le32 *)piomb;
u32 opc = (u32)((le32_to_cpu(pHeader)) & 0xFFF);