Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-22 Thread Vladimir Sementsov-Ogievskiy
21.06.2021 21:53, Eric Blake wrote: On Sat, Jun 19, 2021 at 01:53:24PM +0300, Vladimir Sementsov-Ogievskiy wrote: +++ b/block/nbd.c @@ -1702,7 +1702,7 @@ static int coroutine_fn nbd_client_co_block_status( .type = NBD_CMD_BLOCK_STATUS, .from = offset, .len =

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-21 Thread Eric Blake
On Mon, Jun 21, 2021 at 11:50:02AM +0200, Max Reitz wrote: > > I don't that this change is correct. In contrast with file-posix you > > don't get extra information for free, you just make a larger request. > > This means that server will have to do more work. > > Oh, oops.  Seems I was blind in

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-21 Thread Eric Blake
On Sat, Jun 19, 2021 at 01:53:24PM +0300, Vladimir Sementsov-Ogievskiy wrote: > > +++ b/block/nbd.c > > @@ -1702,7 +1702,7 @@ static int coroutine_fn nbd_client_co_block_status( > > .type = NBD_CMD_BLOCK_STATUS, > > .from = offset, > > .len =

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-21 Thread Max Reitz
On 19.06.21 12:53, Vladimir Sementsov-Ogievskiy wrote: 17.06.2021 18:52, Max Reitz wrote: bdrv_co_block_status() does it for us, we do not need to do it here. The advantage of not capping *pnum is that bdrv_co_block_status() can cache larger data regions than requested by its caller.

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-19 Thread Vladimir Sementsov-Ogievskiy
18.06.2021 23:20, Eric Blake wrote: On Thu, Jun 17, 2021 at 05:52:46PM +0200, Max Reitz wrote: bdrv_co_block_status() does it for us, we do not need to do it here. The advantage of not capping *pnum is that bdrv_co_block_status() can cache larger data regions than requested by its caller.

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-19 Thread Vladimir Sementsov-Ogievskiy
17.06.2021 18:52, Max Reitz wrote: bdrv_co_block_status() does it for us, we do not need to do it here. The advantage of not capping *pnum is that bdrv_co_block_status() can cache larger data regions than requested by its caller. Signed-off-by: Max Reitz --- block/nbd.c | 2 +- 1 file

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:46PM +0200, Max Reitz wrote: > bdrv_co_block_status() does it for us, we do not need to do it here. > > The advantage of not capping *pnum is that bdrv_co_block_status() can > cache larger data regions than requested by its caller. > > Signed-off-by: Max Reitz >

[PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-17 Thread Max Reitz
bdrv_co_block_status() does it for us, we do not need to do it here. The advantage of not capping *pnum is that bdrv_co_block_status() can cache larger data regions than requested by its caller. Signed-off-by: Max Reitz --- block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)