Commit 683bce8d authored by Qiang Huang's avatar Qiang Huang Committed by Ben Hutchings

drivers: hv: additional switch to use mb() instead of smp_mb()

commit e4af376d(drivers: hv: switch to use mb() instead of smp_mb()),
the adjustment mistakenly dropped the change in hv_ringbuffer_read,
so add it.
Signed-off-by: default avatarQiang Huang <h.huangqiang@huawei.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 6ff2fec9
......@@ -485,7 +485,7 @@ int hv_ringbuffer_read(struct hv_ring_buffer_info *inring_info, void *buffer,
/* Make sure all reads are done before we update the read index since */
/* the writer may start writing to the read area once the read index */
/*is updated */
smp_mb();
mb();
/* Update the read index */
hv_set_next_read_location(inring_info, next_read_location);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment