]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/open-iscsi-mv-transport-eh-setting
Updated xen patches taken from suse.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / open-iscsi-mv-transport-eh-setting
1 From: Mike Christie <michaelc@cs.wisc.edu>
2 Subject: Kernel panic on sysReboot of array controller
3 References: bnc#466846
4
5 Here is a patch made against upstream. It is simple. The
6 transportt->eh_timed_out was supposed to go in iscsi_host_add. It used
7 to 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
10 Signed-off-by: Yanling Qi <yanling.qi@lsi.com>
11 Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
12 Signed-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)