[Devel] [PATCH RH9 01/12] dm-qcow2: Rename MERGE_QIOS_MAX
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Jan 19 19:17:00 MSK 2022
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/md/dm-qcow2-cmd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/md/dm-qcow2-cmd.c b/drivers/md/dm-qcow2-cmd.c
index 779c6618e598..34c05044710d 100644
--- a/drivers/md/dm-qcow2-cmd.c
+++ b/drivers/md/dm-qcow2-cmd.c
@@ -7,7 +7,7 @@
#include <linux/file.h>
#include "dm-qcow2.h"
-#define MERGE_QIOS_MAX 64
+#define SERVICE_QIOS_MAX 64
static int qcow2_get_errors(struct qcow2_target *tgt, char *result,
unsigned int maxlen)
@@ -88,9 +88,9 @@ static int qcow2_service_iter(struct qcow2_target *tgt, struct qcow2 *qcow2,
qio->endio_cb_data = &service_status;
dispatch_qios(qcow2, qio, NULL);
- if (atomic_inc_return(&tgt->service_qios) == MERGE_QIOS_MAX) {
+ if (atomic_inc_return(&tgt->service_qios) == SERVICE_QIOS_MAX) {
wait_event(tgt->service_wq,
- atomic_read(&tgt->service_qios) < MERGE_QIOS_MAX);
+ atomic_read(&tgt->service_qios) < SERVICE_QIOS_MAX);
}
if (unlikely(READ_ONCE(service_status)))
More information about the Devel
mailing list