[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] blockdev: qmp_transaction: remove bdrv_drain_all from transa
From: |
Andrey Zhadchenko |
Subject: |
[PATCH 2/2] blockdev: qmp_transaction: remove bdrv_drain_all from transaction |
Date: |
Mon, 4 Sep 2023 10:31:16 +0200 |
Now all transaction actions drain their respective bds
Also, bdrv_drain_all() did not protect anything in case of IOThreads
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko@virtuozzo.com>
---
blockdev.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 7a376fce90..65932f9afb 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -2303,9 +2303,6 @@ void qmp_transaction(TransactionActionList *actions,
block_job_txn = job_txn_new();
}
- /* drain all i/o before any operations */
- bdrv_drain_all();
-
tran = tran_new();
/* We don't do anything in this loop that commits us to the operations */
--
2.39.2