Re: [PATCH 5/5] block/io: auto-no-fallback for write-zeroes

2020-04-01 Thread Vladimir Sementsov-Ogievskiy
14.03.2020 0:56, Eric Blake wrote: On 3/2/20 4:05 AM, Vladimir Sementsov-Ogievskiy wrote: NBD driver may has max_pwrite_zeroes but doesn't has max_pwrite_zeroes_no_fallback limit. This means, that (when BDRV_REQ_NO_FALLBACK is supported) it is beneficial to try send request with BDRV_REQ_NO_FALL

Re: [PATCH 5/5] block/io: auto-no-fallback for write-zeroes

2020-03-13 Thread Eric Blake
On 3/2/20 4:05 AM, Vladimir Sementsov-Ogievskiy wrote: NBD driver may has max_pwrite_zeroes but doesn't has max_pwrite_zeroes_no_fallback limit. This means, that (when BDRV_REQ_NO_FALLBACK is supported) it is beneficial to try send request with BDRV_REQ_NO_FALLBACK instead of splitting the reques

[PATCH 5/5] block/io: auto-no-fallback for write-zeroes

2020-03-02 Thread Vladimir Sementsov-Ogievskiy
NBD driver may has max_pwrite_zeroes but doesn't has max_pwrite_zeroes_no_fallback limit. This means, that (when BDRV_REQ_NO_FALLBACK is supported) it is beneficial to try send request with BDRV_REQ_NO_FALLBACK instead of splitting the request accordingly to max_pwrite_zeroes. If failed, fallback