]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | Subject: Fix errors due to inconsistent command data |
2 | From: Brian J. King <brking@us.ibm.com> | |
3 | References: 456654 - LTC50451 | |
4 | ||
5 | In order to ensure the VIOS sees a consistent command buffer, we | |
6 | need to add a memory barrier after building the command buffer | |
7 | but before sending the command. | |
8 | ||
9 | Signed-off-by: Brian King <brking@linux.vnet.ibm.com> | |
10 | Signed-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); |