diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2008-12-03 11:02:56 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 11:24:24 -0600 |
commit | a528ab7a324f1dbb3598ae0ecd238ab7dd974294 (patch) | |
tree | acf24e35dd3d4d11af2410b5865479a571534220 | |
parent | 1c41fa8288277e76785acb50f52bb2f39509f903 (diff) | |
download | linux-stable-a528ab7a324f1dbb3598ae0ecd238ab7dd974294.tar.gz linux-stable-a528ab7a324f1dbb3598ae0ecd238ab7dd974294.tar.bz2 linux-stable-a528ab7a324f1dbb3598ae0ecd238ab7dd974294.zip |
[SCSI] ibmvfc: Fix errors due to inconsistent command data
In order to ensure the VIOS sees a consistent command buffer, we
need to add a memory barrier after building the command buffer
but before sending the command.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 2aa3d695d548..a401e938a87a 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -1381,6 +1381,8 @@ static int ibmvfc_send_event(struct ibmvfc_event *evt, add_timer(&evt->timer); } + mb(); + if ((rc = ibmvfc_send_crq(vhost, crq_as_u64[0], crq_as_u64[1]))) { list_del(&evt->queue); del_timer(&evt->timer); |