[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] block/nbd-client: drop max_block restriction from discard
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH 2/5] block/nbd-client: drop max_block restriction from discard |
Date: |
Mon, 2 Mar 2020 13:05:34 +0300 |
NBD spec is updated, so that max_block doesn't relate to
NBD_CMD_TRIM. So, drop the restriction.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
block/nbd.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/block/nbd.c b/block/nbd.c
index 2a58d6b91c..a62761ea5a 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -1955,7 +1955,6 @@ static void nbd_refresh_limits(BlockDriverState *bs,
Error **errp)
}
bs->bl.request_alignment = min;
- bs->bl.max_pdiscard = max;
bs->bl.max_pwrite_zeroes = max;
bs->bl.max_transfer = max;
--
2.21.0