瀏覽代碼

[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: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Christoph Hellwig 19 年之前
父節點
當前提交
3072c4abdd
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      drivers/scsi/megaraid/megaraid_sas.c

+ 0 - 5
drivers/scsi/megaraid/megaraid_sas.c

@@ -767,17 +767,12 @@ static int megasas_generic_reset(struct scsi_cmnd *scmd)
 		return FAILED;
 		return FAILED;
 	}
 	}
 
 
-	spin_unlock(scmd->device->host->host_lock);
-
 	ret_val = megasas_wait_for_outstanding(instance);
 	ret_val = megasas_wait_for_outstanding(instance);
-
 	if (ret_val == SUCCESS)
 	if (ret_val == SUCCESS)
 		printk(KERN_NOTICE "megasas: reset successful \n");
 		printk(KERN_NOTICE "megasas: reset successful \n");
 	else
 	else
 		printk(KERN_ERR "megasas: failed to do reset\n");
 		printk(KERN_ERR "megasas: failed to do reset\n");
 
 
-	spin_lock(scmd->device->host->host_lock);
-
 	return ret_val;
 	return ret_val;
 }
 }