Re: [PATCH for-5.1] nbd: Fix large trim/zero requests

2020-07-23 Thread Vladimir Sementsov-Ogievskiy
23.07.2020 14:47, Eric Blake wrote: On 7/23/20 2:23 AM, Vladimir Sementsov-Ogievskiy wrote: 23.07.2020 00:22, Eric Blake wrote: Although qemu as NBD client limits requests to <2G, the NBD protocol allows clients to send requests almost all the way up to 4G.  But because our block layer is not

Re: [PATCH for-5.1] nbd: Fix large trim/zero requests

2020-07-23 Thread Eric Blake
On 7/23/20 2:23 AM, Vladimir Sementsov-Ogievskiy wrote: 23.07.2020 00:22, Eric Blake wrote: Although qemu as NBD client limits requests to <2G, the NBD protocol allows clients to send requests almost all the way up to 4G.  But because our block layer is not yet 64-bit clean, we accidentally

Re: [PATCH for-5.1] nbd: Fix large trim/zero requests

2020-07-23 Thread Vladimir Sementsov-Ogievskiy
23.07.2020 00:22, Eric Blake wrote: Although qemu as NBD client limits requests to <2G, the NBD protocol allows clients to send requests almost all the way up to 4G. But because our block layer is not yet 64-bit clean, we accidentally wrap such requests into a negative size, and fail with EIO

[PATCH for-5.1] nbd: Fix large trim/zero requests

2020-07-22 Thread Eric Blake
Although qemu as NBD client limits requests to <2G, the NBD protocol allows clients to send requests almost all the way up to 4G. But because our block layer is not yet 64-bit clean, we accidentally wrap such requests into a negative size, and fail with EIO instead of performing the intended