[azure:x,v2,3/4] Revert "UBUNTU: SAUCE: vmbus: don't need to check interrupt mask on read side"
diff mbox series

Message ID 1520432911-4667-4-git-send-email-marcelo.cerri@canonical.com
State New
Headers show
Series
  • Drivers: hv: vmbus: Fix ring buffer signaling
Related show

Commit Message

Marcelo Henrique Cerri March 7, 2018, 2:28 p.m. UTC
BugLink: http://bugs.launchpad.net/bugs/1748662

This reverts commit 6bd427c166e666fa299c89081c7077f9aed81146.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
---
 drivers/hv/ring_buffer.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

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);