Commit ffd91b2f authored by James Bottomley's avatar James Bottomley

[SCSI] downgrade lack of eh to warning and stack dump

parent e51e9039
......@@ -53,21 +53,6 @@ static int scsi_host_next_hn; /* host_no for next new host */
static int scsi_hosts_registered; /* cnt of registered scsi hosts */
static int scsi_ignore_no_error_handling = 0;
#ifdef MODULE
MODULE_PARM(scsi_ignore_no_error_handling, "i");
#else
static int __init
scsi_ignore_no_error_handling_setup(char *str)
{
scsi_ignore_no_error_handling = 1;
return 1;
}
__setup("scsi_ignore_no_error_handling=", scsi_ignore_no_error_handling_setup);
#endif
/**
* scsi_tp_for_each_host - call function for each scsi host off a template
* @shost_tp: a pointer to a scsi host template
......@@ -375,10 +360,7 @@ struct Scsi_Host * scsi_register(Scsi_Host_Template *shost_tp, int xtr_bytes)
shost_tp->eh_bus_reset_handler == NULL &&
shost_tp->eh_host_reset_handler == NULL) {
printk(KERN_ERR "ERROR: SCSI host `%s' has no error handling\nERROR: This is not a safe way to run your SCSI host\nERROR: The error handling must be added to this driver\n", hname);
if(!scsi_ignore_no_error_handling) {
printk(KERN_ERR "ERROR: not attaching this host.\n\nERROR: to force attachment, boot with the scsi_ignore_no_error_handling flag");
return NULL;
}
dump_stack();
}
gfp_mask = GFP_KERNEL;
if (shost_tp->unchecked_isa_dma && xtr_bytes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment