]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: hv: check interrupt mask before read_index
authorJason Wang <jasowang@redhat.com>
Thu, 20 Jun 2013 04:58:57 +0000 (12:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 23:24:17 +0000 (16:24 -0700)
commit33090e16e8161425ad3d99ed5047abb52e7a139b
tree7e36ab11890da81a89817e2b24e85cc11b480b83
parentab754450b2d7c29c16f7f9afa63f2f007eb28742
drivers: hv: check interrupt mask before read_index

This patches add a read barriers to force the driver to check the interrupt mask
before read_index. Otherwise we may lost a kick to host.

Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/ring_buffer.c