[azure:x][PATCH v3 3/4] Revert "UBUNTU: SAUCE: vmbus: don't need to check interrupt mask on read side"
Marcelo Henrique Cerri
marcelo.cerri at canonical.com
Wed Mar 7 15:38:47 UTC 2018
BugLink: http://bugs.launchpad.net/bugs/1748662
This reverts commit 6bd427c166e666fa299c89081c7077f9aed81146.
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
drivers/hv/ring_buffer.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c
index 2f80666583c4..12eb8caa4263 100644
--- a/drivers/hv/ring_buffer.c
+++ b/drivers/hv/ring_buffer.c
@@ -423,6 +423,10 @@ void hv_pkt_iter_close(struct vmbus_channel *channel)
*/
virt_mb();
+ /* If host has disabled notifications then skip */
+ if (rbi->ring_buffer->interrupt_mask)
+ return;
+
if (rbi->ring_buffer->feature_bits.feat_pending_send_sz) {
u32 pending_sz = READ_ONCE(rbi->ring_buffer->pending_send_sz);
--
2.7.4
More information about the kernel-team
mailing list