diff options
| author | Greg Kurz <groug@kaod.org> | 2017-04-04 18:06:01 +0200 |
|---|---|---|
| committer | Greg Kurz <groug@kaod.org> | 2017-04-04 18:06:01 +0200 |
| commit | 18adde86ddc6dbef865a3d360bf8e15dce85756d (patch) | |
| tree | 0a38997e37cd35a6ef5d52ef3e5bdab0e3fbf402 /scripts/qemugdb/mtree.py | |
| parent | 87cc4c61020addea6a001b94b662596b1896d1b3 (diff) | |
| download | focaccia-qemu-18adde86ddc6dbef865a3d360bf8e15dce85756d.tar.gz focaccia-qemu-18adde86ddc6dbef865a3d360bf8e15dce85756d.zip | |
9pfs: fix multiple flush for same request
If a client tries to flush the same outstanding request several times, only the first flush completes. Subsequent ones keep waiting for the request completion in v9fs_flush() and, therefore, leak a PDU. This will cause QEMU to hang when draining active PDUs the next time the device is reset. Let have each flush request wake up the next one if any. The last waiter frees the cancelled PDU. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qemugdb/mtree.py')
0 files changed, 0 insertions, 0 deletions