[Devel] [PATCH] scsi-DBG: make scsi error laud
Dmitry Monakhov
dmonakhov at openvz.org
Fri Nov 11 03:35:53 PST 2016
This patch is not for release, testing purpose only.
We need it in order to investigate #PSBM-54665
Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 287045b..7364d86 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -141,12 +141,13 @@ int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state)
return 0;
illegal:
- SCSI_LOG_ERROR_RECOVERY(1,
- shost_printk(KERN_ERR, shost,
- "Illegal host state transition"
- "%s->%s\n",
- scsi_host_state_name(oldstate),
- scsi_host_state_name(state)));
+ shost_printk(KERN_ERR, shost,
+ "Illegal host state transition"
+ "%s->%s\n",
+ scsi_host_state_name(oldstate),
+ scsi_host_state_name(state));
+ dump_stack();
+
return -EINVAL;
}
EXPORT_SYMBOL(scsi_host_set_state);
--
2.7.4
More information about the Devel
mailing list