Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75942064 authored by Saurav Kashyap's avatar Saurav Kashyap Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Acquire hardware lock while manipulating dsd list.



The dsd list shouldn't be manipulated without taking the per host hardware
lock to prevent multiple callers from trampling upon one another.

Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 42cd4f5d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -913,7 +913,10 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd)
		    "Abort command mbx success.\n");
		wait = 1;
	}

	spin_lock_irqsave(&ha->hardware_lock, flags);
	qla2x00_sp_compl(ha, sp);
	spin_unlock_irqrestore(&ha->hardware_lock, flags);

	/* Wait for the command to be returned. */
	if (wait) {