scsi: ipr: Prepare for enabling lock context analysis

Document locking requirements with __must_hold().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/3e6e59930da8c522c95d598aeb04bb30dbc11e75.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:11 -07:00 committed by Martin K. Petersen (Oracle)
parent e2bb4cd080
commit 9c176edb89

View File

@ -5194,6 +5194,7 @@ static void ipr_abort_timeout(struct timer_list *t)
* SUCCESS / FAILED
**/
static int ipr_cancel_op(struct scsi_cmnd *scsi_cmd)
__must_hold(&scsi_cmd->device->host->host_lock)
{
struct Scsi_Host *host = scsi_cmd->device->host;
struct ipr_cmnd *ipr_cmd;