]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.fixes/open-iscsi-mv-transport-eh-setting
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / open-iscsi-mv-transport-eh-setting
CommitLineData
2cb7cef9
BS
1From: Mike Christie <michaelc@cs.wisc.edu>
2Subject: Kernel panic on sysReboot of array controller
3References: bnc#466846
4
5Here is a patch made against upstream. It is simple. The
6transportt->eh_timed_out was supposed to go in iscsi_host_add. It used
7to be in iscsi_host_alloc because we set the LLD transportt in there
8(now the LLD does it after calling iscsi_host_alloc).
9
10Signed-off-by: Yanling Qi <yanling.qi@lsi.com>
11Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
12Signed-off-by: Hannes Reinecke <hare@suse.de>
13
14---
15 drivers/scsi/libiscsi.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18--- a/drivers/scsi/libiscsi.c
19+++ b/drivers/scsi/libiscsi.c
20@@ -1927,6 +1927,7 @@ int iscsi_host_add(struct Scsi_Host *sho
21 if (!shost->can_queue)
22 shost->can_queue = ISCSI_DEF_XMIT_CMDS_MAX;
23
24+ shost->transportt->eh_timed_out = iscsi_eh_cmd_timed_out;
25 return scsi_add_host(shost, pdev);
26 }
27 EXPORT_SYMBOL_GPL(iscsi_host_add);
28@@ -1949,7 +1950,6 @@ struct Scsi_Host *iscsi_host_alloc(struc
29 shost = scsi_host_alloc(sht, sizeof(struct iscsi_host) + dd_data_size);
30 if (!shost)
31 return NULL;
32- shost->transportt->eh_timed_out = iscsi_eh_cmd_timed_out;
33
34 if (qdepth > ISCSI_MAX_CMD_PER_LUN || qdepth < 1) {
35 if (qdepth != 0)