mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[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>
This commit is contained in:
parent
1c41fa8288
commit
a528ab7a32
1 changed files with 2 additions and 0 deletions
|
@ -1381,6 +1381,8 @@ static int ibmvfc_send_event(struct ibmvfc_event *evt,
|
||||||
add_timer(&evt->timer);
|
add_timer(&evt->timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mb();
|
||||||
|
|
||||||
if ((rc = ibmvfc_send_crq(vhost, crq_as_u64[0], crq_as_u64[1]))) {
|
if ((rc = ibmvfc_send_crq(vhost, crq_as_u64[0], crq_as_u64[1]))) {
|
||||||
list_del(&evt->queue);
|
list_del(&evt->queue);
|
||||||
del_timer(&evt->timer);
|
del_timer(&evt->timer);
|
||||||
|
|
Loading…
Reference in a new issue