static int megasas_generic_reset(struct scsi_cmnd *scmd){	int ret_val;	struct megasas_instance *instance;	instance = (struct megasas_instance *)scmd->device->host->hostdata;	scmd_printk(KERN_NOTICE, scmd, "megasas: RESET -%ld cmd=%x\n",	       scmd->serial_number, scmd->cmnd[0]);	if (instance->hw_crit_error) {		printk(KERN_ERR "megasas: cannot recover from previous reset "		       "failures\n");		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;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3072c4abdd8c239a28085733adf3aaae94ad8fbe/megaraid_sas.c/buggy/drivers/scsi/megaraid/megaraid_sas.c