]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.drivers/ibmvfc_class3.patch
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / ibmvfc_class3.patch
CommitLineData
00e5a55c
BS
1Subject: Fix command timeout errors
2From: Brian King <brking@linux.vnet.ibm.com>
3References: 472645 - LTC51429
4
5Currently the ibmvfc driver sets the IBMVFC_CLASS_3_ERR flag
6in the VFC Frame if both the adapter and the device claim support
7for Class 3. However, this bit actually refers to Class 3 Error
8Recovery, which is currently not supported by the VIOS. Setting this
9bit can cause lots of command timeout responses from the VIOS resulting
10in general instability. Fix this by never setting this bit.
11
12Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
13Signed-off-by: Olaf Hering <olh@suse.de>
14---
15
16 drivers/scsi/ibmvscsi/ibmvfc.c | 3 ---
17 1 file changed, 3 deletions(-)
18
19--- a/drivers/scsi/ibmvscsi/ibmvfc.c
20+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
21@@ -1571,9 +1571,6 @@ static int ibmvfc_queuecommand(struct sc
22 vfc_cmd->resp_len = sizeof(vfc_cmd->rsp);
23 vfc_cmd->cancel_key = (unsigned long)cmnd->device->hostdata;
24 vfc_cmd->tgt_scsi_id = rport->port_id;
25- if ((rport->supported_classes & FC_COS_CLASS3) &&
26- (fc_host_supported_classes(vhost->host) & FC_COS_CLASS3))
27- vfc_cmd->flags = IBMVFC_CLASS_3_ERR;
28 vfc_cmd->iu.xfer_len = scsi_bufflen(cmnd);
29 int_to_scsilun(cmnd->device->lun, &vfc_cmd->iu.lun);
30 memcpy(vfc_cmd->iu.cdb, cmnd->cmnd, cmnd->cmd_len);