diff options
-rw-r--r-- | drivers/hv/ring_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 791f45dfc85d..26c93cf9f6be 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv/ring_buffer.c | |||
@@ -75,6 +75,8 @@ static bool hv_need_to_signal(u32 old_write, struct hv_ring_buffer_info *rbi) | |||
75 | if (rbi->ring_buffer->interrupt_mask) | 75 | if (rbi->ring_buffer->interrupt_mask) |
76 | return false; | 76 | return false; |
77 | 77 | ||
78 | /* check interrupt_mask before read_index */ | ||
79 | rmb(); | ||
78 | /* | 80 | /* |
79 | * This is the only case we need to signal when the | 81 | * This is the only case we need to signal when the |
80 | * ring transitions from being empty to non-empty. | 82 | * ring transitions from being empty to non-empty. |