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

Commit 3072c4ab authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley
Browse files

[SCSI] megaraid_sas: fix EH locking



recent kernels call the eh_ methods without the host lock held.
megaraid_sas doesn't need it but drops it before calling a sleeping
routine and reqcquires it afterwards.  Just remove the
spin_unlock/spin_lock calls.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 7dfdc9a5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -767,17 +767,12 @@ static int megasas_generic_reset(struct scsi_cmnd *scmd)
		return FAILED;
	}

	spin_unlock(scmd->device->host->host_lock);

	ret_val = megasas_wait_for_outstanding(instance);

	if (ret_val == SUCCESS)
		printk(KERN_NOTICE "megasas: reset successful \n");
	else
		printk(KERN_ERR "megasas: failed to do reset\n");

	spin_lock(scmd->device->host->host_lock);

	return ret_val;
}