[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/6] block/nbd-client: drop max_block restriction from block_s
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v2 1/6] block/nbd-client: drop max_block restriction from block_status |
Date: |
Wed, 1 Apr 2020 18:01:07 +0300 |
NBD spec is updated, so that max_block doesn't relate to
NBD_CMD_BLOCK_STATUS. So, drop the restriction.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
block/nbd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/block/nbd.c b/block/nbd.c
index 2160859f64..d4d518a780 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -1320,9 +1320,7 @@ static int coroutine_fn nbd_client_co_block_status(
NBDRequest request = {
.type = NBD_CMD_BLOCK_STATUS,
.from = offset,
- .len = MIN(MIN_NON_ZERO(QEMU_ALIGN_DOWN(INT_MAX,
- bs->bl.request_alignment),
- s->info.max_block),
+ .len = MIN(QEMU_ALIGN_DOWN(INT_MAX, bs->bl.request_alignment),
MIN(bytes, s->info.size - offset)),
.flags = NBD_CMD_FLAG_REQ_ONE,
};
--
2.21.0
- [PATCH v2 0/6] nbd: reduce max_block restrictions, Vladimir Sementsov-Ogievskiy, 2020/04/01
- [PATCH v2 5/6] block/io: refactor bdrv_co_do_pwrite_zeroes head calculation, Vladimir Sementsov-Ogievskiy, 2020/04/01
- [PATCH v2 4/6] block/nbd: define new max_write_zero_fast limit, Vladimir Sementsov-Ogievskiy, 2020/04/01
- [PATCH v2 1/6] block/nbd-client: drop max_block restriction from block_status,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v2 2/6] block/nbd-client: drop max_block restriction from discard, Vladimir Sementsov-Ogievskiy, 2020/04/01
- [PATCH v2 3/6] block: add max_pwrite_zeroes_fast to BlockLimits, Vladimir Sementsov-Ogievskiy, 2020/04/01
- [PATCH v2 6/6] block/io: auto-no-fallback for write-zeroes, Vladimir Sementsov-Ogievskiy, 2020/04/01
- Re: [PATCH v2 0/6] nbd: reduce max_block restrictions, no-reply, 2020/04/01