]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/ibmvfc_class3.patch
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / ibmvfc_class3.patch
1 Subject: Fix command timeout errors
2 From: Brian King <brking@linux.vnet.ibm.com>
3 References: 472645 - LTC51429
4
5 Currently the ibmvfc driver sets the IBMVFC_CLASS_3_ERR flag
6 in the VFC Frame if both the adapter and the device claim support
7 for Class 3. However, this bit actually refers to Class 3 Error
8 Recovery, which is currently not supported by the VIOS. Setting this
9 bit can cause lots of command timeout responses from the VIOS resulting
10 in general instability. Fix this by never setting this bit.
11
12 Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
13 Signed-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);