[Devel] [RFC PATCH vz9 v5 25/49] dm-ploop: do not wait for BAT update for non-FUA requests

Alexander Atanasov alexander.atanasov at virtuozzo.com
Mon Nov 18 09:24:52 MSK 2024


From: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>

https://virtuozzo.atlassian.net/browse/VSTOR-91817
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 drivers/md/dm-ploop-map.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 8c02095321c4..255555d24f0c 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1502,10 +1502,11 @@ static bool ploop_locate_new_cluster_and_attach_pio(struct ploop *ploop,
 	if (bat_update_prepared)
 		ploop_md_make_dirty(ploop, md);
 
-	if (pio->bi_op & REQ_FUA)
+	if (pio->bi_op & REQ_FUA) {
 		piwb->pio->bi_op |= REQ_FUA;
+		ploop_attach_end_action(pio, piwb);
+	}
 
-	ploop_attach_end_action(pio, piwb);
 	attached = true;
 out:
 	return attached;
-- 
2.43.0



More information about the Devel mailing list