]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commit
Make sure event counter is updated before finish receiver ring poll
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 18 Sep 2018 13:24:15 +0000 (14:24 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 18 Sep 2018 13:53:09 +0000 (14:53 +0100)
commite8bfdb0f0bffed3891d256ebfc142afb89b551e4
treec4b86ac12e216d973c80477a80cf2197648f21e1
parent129ad516ef682c49ce9328628b8988b914edddc4
Make sure event counter is updated before finish receiver ring poll

There was a flaw in commit 5932938b "Don't bump the receiver event counter
if the poller is going to retry" in that it is possible to drop out of
poll without ever updating the event counter (if one attempt requests a
retry and the next attempt finds nothing to do). This patch fixes the
issue by using the RING_FINAL_CHECK_FOR_RESPONSES macro to update the
event counter, which checks for a race with new responses.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/receiver.c