]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/ibmvfc-add_sync.patch
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / ibmvfc-add_sync.patch
CommitLineData
2cb7cef9
BS
1Subject: Fix errors due to inconsistent command data
2From: Brian J. King <brking@us.ibm.com>
3References: 456654 - LTC50451
4
5In order to ensure the VIOS sees a consistent command buffer, we
6need to add a memory barrier after building the command buffer
7but before sending the command.
8
9Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
10Signed-off-by: Olaf Hering <olh@suse.de>
11---
12
13 drivers/scsi/ibmvscsi/ibmvfc.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16--- a/drivers/scsi/ibmvscsi/ibmvfc.c
17+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
18@@ -1381,6 +1381,8 @@ static int ibmvfc_send_event(struct ibmv
19 add_timer(&evt->timer);
20 }
21
22+ mb();
23+
24 if ((rc = ibmvfc_send_crq(vhost, crq_as_u64[0], crq_as_u64[1]))) {
25 list_del(&evt->queue);
26 del_timer(&evt->timer);