]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commit
Don't prematurely fake transmit responses
authorPaul Durrant <pdurrant@amazon.com>
Wed, 7 Feb 2024 17:41:45 +0000 (17:41 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Wed, 7 Feb 2024 17:51:01 +0000 (17:51 +0000)
commit5f5614353471d3815e06135bcccf44ffd16720c8
tree7734f0bd9f9ad0302e76a7c490884864e3c8192c
parenta67e7510981fa90ea5b3f817f267ba5cb8357eb9
Don't prematurely fake transmit responses

If the device is being ejected then the backend state will transition from
XenbusStateConnected to XenbusStateClosing. This is done by the toolstack
and should have no effect on the backend's ability to complete requests.
Therefore, when we fake responses in __TransmitterRingDisable() we could
be racing with an active backend. Hence amend the test in the loop to
consider a backend in either XenbusStateConnected or XenbusStateClosing to
be worth waiting for.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenvif/transmitter.c