[Devel] [PATCH VZ9 v3 10/13] dm-ploop: do not wait for BAT update for non-FUA requests
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Thu Oct 24 20:23:38 MSK 2024
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 fb16f7e66dd2..281fa552a26d 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1503,10 +1503,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.39.3
More information about the Devel
mailing list