diff mbox series

[v7,01/11] block/reqlist: drop extra assertion

Message ID 20210904162428.222008-2-vsementsov@virtuozzo.com (mailing list archive)
State New, archived
Headers show
Series qcow2: fix parallel rewrite and discard (reqlist) | expand

Commit Message

Vladimir Sementsov-Ogievskiy Sept. 4, 2021, 4:24 p.m. UTC
We are going to reuse reqlist in conditions where intersecting requests
are possible in the list. So, drop the assertion.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
 block/reqlist.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/block/reqlist.c b/block/reqlist.c
index 5e320ba649..c580752db7 100644
--- a/block/reqlist.c
+++ b/block/reqlist.c
@@ -19,8 +19,6 @@ 
 void reqlist_init_req(BlockReqList *reqs, BlockReq *req, int64_t offset,
                       int64_t bytes)
 {
-    assert(!reqlist_find_conflict(reqs, offset, bytes));
-
     *req = (BlockReq) {
         .offset = offset,
         .bytes = bytes,