Re: [Qemu-devel] [PATCH] 9pfs: don't try to flush self and avoid QEMU hang on reset

2017-03-21 Thread Eric Blake
On 03/21/2017 09:42 AM, Greg Kurz wrote: >>> This insane behavior is likely to denote a bug in the client, and it would >>> deserve an Rerror message to be sent back. Unfortunately, the protocol >>> allows it and requires all flush requests to suceed (only a Tflush response >>> >> >> s/suceed/s

Re: [Qemu-devel] [PATCH] 9pfs: don't try to flush self and avoid QEMU hang on reset

2017-03-21 Thread Greg Kurz
On Tue, 21 Mar 2017 09:01:50 -0500 Eric Blake wrote: > On 03/16/2017 11:33 AM, Greg Kurz wrote: > > According to the 9P spec [*], when a client wants to cancel a pending I/O > > request identified by a given tag (uint16), it must send a Tflush message > > and wait for the server to respond with a

Re: [Qemu-devel] [PATCH] 9pfs: don't try to flush self and avoid QEMU hang on reset

2017-03-21 Thread Eric Blake
On 03/16/2017 11:33 AM, Greg Kurz wrote: > According to the 9P spec [*], when a client wants to cancel a pending I/O > request identified by a given tag (uint16), it must send a Tflush message > and wait for the server to respond with a Rflush message before reusing this > tag for another I/O. The

[Qemu-devel] [PATCH] 9pfs: don't try to flush self and avoid QEMU hang on reset

2017-03-16 Thread Greg Kurz
According to the 9P spec [*], when a client wants to cancel a pending I/O request identified by a given tag (uint16), it must send a Tflush message and wait for the server to respond with a Rflush message before reusing this tag for another I/O. The server may still send a completion message for th