[SCSI] ibmvfc: Miscellaneous fixes

Properly setup the size of the async event queue. This fixes a bug where async events
were not getting processed by the driver.

Setup target_id field in the driver's target struct so that target sysfs attributes
work for multiple targets.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Brian King and committed by
James Bottomley
52d7e861 2d0da2a4

+2 -1
+2 -1
drivers/scsi/ibmvscsi/ibmvfc.c
··· 1136 1136 login_info->max_cmds = max_requests + IBMVFC_NUM_INTERNAL_REQ; 1137 1137 login_info->capabilities = IBMVFC_CAN_MIGRATE; 1138 1138 login_info->async.va = vhost->async_crq.msg_token; 1139 - login_info->async.len = vhost->async_crq.size; 1139 + login_info->async.len = vhost->async_crq.size * sizeof(*vhost->async_crq.msgs); 1140 1140 strncpy(login_info->partition_name, vhost->partition_name, IBMVFC_MAX_NAME); 1141 1141 strncpy(login_info->device_name, 1142 1142 vhost->host->shost_gendev.bus_id, IBMVFC_MAX_NAME); ··· 3348 3348 tgt_dbg(tgt, "rport add succeeded\n"); 3349 3349 rport->maxframe_size = tgt->service_parms.common.bb_rcv_sz & 0x0fff; 3350 3350 rport->supported_classes = 0; 3351 + tgt->target_id = rport->scsi_target_id; 3351 3352 if (tgt->service_parms.class1_parms[0] & 0x80000000) 3352 3353 rport->supported_classes |= FC_COS_CLASS1; 3353 3354 if (tgt->service_parms.class2_parms[0] & 0x80000000)