Revert "vhost: cache used event for better performance"
authorJason Wang <jasowang@redhat.com>
Thu, 27 Jul 2017 03:22:05 +0000 (11:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2017 21:15:56 +0000 (14:15 -0700)
commit8d65843c44269c21e95c98090d9bb4848d473853
tree2750e3949f94e9c424a97fe8165c50f6c893dcba
parent90fecc145e49ba0e910173e8b9fe94a458ef3024
Revert "vhost: cache used event for better performance"

This reverts commit 809ecb9bca6a9424ccd392d67e368160f8b76c92. Since it
was reported to break vhost_net. We want to cache used event and use
it to check for notification. The assumption was that guest won't move
the event idx back, but this could happen in fact when 16 bit index
wraps around after 64K entries.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c
drivers/vhost/vhost.h