[Devel] [PATCH VZ9 2/3] dm-ploop: do not wait for BAT update for non-FUA requests
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Fri Sep 27 12:53:35 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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index bd4980259b84..30321691bfdc 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1490,10 +1490,10 @@ 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->is_fua = true;
-
- 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