qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Vladimir Sementsov-Ogievskiy
Subject: [PATCH v7 01/11] block/reqlist: drop extra assertion
Date: Sat, 4 Sep 2021 19:24:18 +0300

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 --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,
-- 
2.29.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]