Re: [Qemu-block] [PATCH] file-posix: Fix has_write_zeroes after NO_FALLBACK

2019-08-17 Thread Eric Blake
On 8/16/19 4:55 AM, Kevin Wolf wrote: > If QEMU_AIO_NO_FALLBACK is given, we always return failure and don't > even try to use the BLKZEROOUT ioctl. In this failure case, we shouldn't > disable has_write_zeroes because we didn't learn anything about the > ioctl. The next request might not set

[Qemu-block] [PATCH] file-posix: Fix has_write_zeroes after NO_FALLBACK

2019-08-16 Thread Kevin Wolf
If QEMU_AIO_NO_FALLBACK is given, we always return failure and don't even try to use the BLKZEROOUT ioctl. In this failure case, we shouldn't disable has_write_zeroes because we didn't learn anything about the ioctl. The next request might not set QEMU_AIO_NO_FALLBACK and we can still use the