The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.17.vz10
------>
commit dd0a834ea02710e1e289ed88f26aeacca324a3a0
Author: Pavel Tikhomirov <[email protected]>
Date: Tue Nov 11 16:05:37 2025 +0800
Revert "dm-ploop: set IOCB_DSYNC on all FUA requests"
This reverts commit 52daf66590faf54aad9e438bae9278b71c22da0f.
We don't have REQ_FUA in dm-ploop anymore after commit 4e659676652fa
("md: mark dm-ploop and dm-qcow2 targets non-fua") so we can revert all
our REQ_FUA specific handling.
https://virtuozzo.atlassian.net/browse/VSTOR-119063
Signed-off-by: Pavel Tikhomirov <[email protected]>
Feature: dm-ploop: ploop target driver
---
drivers/md/dm-ploop-map.c | 22 ++++------------------
drivers/md/dm-ploop-target.c | 2 --
2 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 5a3b5730d2065..fad333905560b 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -141,7 +141,7 @@ static void ploop_init_prq_and_embedded_pio(struct ploop
*ploop,
struct request *rq, struct ploop_rq *prq, struct pio *pio)
{
ploop_init_prq(prq, rq);
- ploop_init_pio(ploop, rq->cmd_flags, pio);
+ ploop_init_pio(ploop, req_op(rq), pio);
pio->css = prq->css;
pio->endio_cb = ploop_prq_endio;
@@ -291,11 +291,7 @@ static struct pio *ploop_split_and_chain_pio(struct ploop
*ploop,
if (!split)
return NULL;
- /*
- * Do not copy REQ_FUA to every split pio. we will sync
- * before calling endio on original pio.
- */
- ploop_init_pio(ploop, pio->bi_op & ~REQ_FUA, split);
+ ploop_init_pio(ploop, pio->bi_op, split);
split->css = pio->css;
split->queue_list_id = pio->queue_list_id;
split->free_on_endio = true;
@@ -1800,17 +1796,7 @@ static bool
ploop_locate_new_cluster_and_attach_pio(struct ploop *ploop,
goto error;
}
-#ifdef PLOOP_DELAYWB
- if (pio->bi_op & REQ_FUA) {
- piwb->pio->bi_op |= REQ_FUA;
- ploop_attach_end_action(pio, piwb);
- ploop_md_up_prio(ploop, md);
- }
-#else
- if (pio->bi_op & REQ_FUA) {
- piwb->pio->bi_op |= REQ_FUA;
- ploop_md_up_prio(ploop, md);
- }
+#ifndef PLOOP_DELAYWB
ploop_attach_end_action(pio, piwb);
#endif
attached = true;
@@ -2557,7 +2543,7 @@ static void ploop_submit_embedded_pio(struct ploop
*ploop, struct pio *pio, gfp_
if (blk_rq_bytes(rq)) {
pio->queue_list_id = PLOOP_LIST_PREPARE;
} else {
- WARN_ON_ONCE(!((pio->bi_op & REQ_OP_MASK) == REQ_OP_FLUSH));
+ WARN_ON_ONCE(pio->bi_op != REQ_OP_FLUSH);
pio->queue_list_id = PLOOP_LIST_FLUSH;
}
diff --git a/drivers/md/dm-ploop-target.c b/drivers/md/dm-ploop-target.c
index 5853e7e9120ec..b122be1cd9632 100644
--- a/drivers/md/dm-ploop-target.c
+++ b/drivers/md/dm-ploop-target.c
@@ -63,8 +63,6 @@ void ploop_call_rw_iter(struct file *file, loff_t pos,
unsigned rw,
iocb->ki_pos = pos;
iocb->ki_complete = ploop_aio_complete;
iocb->ki_flags |= IOCB_ALLOC_CACHE;
- if (rw == WRITE && pio->bi_op & REQ_FUA)
- iocb->ki_flags |= IOCB_DSYNC;
atomic_set(&pio->aio_ref, 2);
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel