[Devel] [PATCH RHEL8 COMMIT] ploop: Rename ploop_submit_index_wb_sync()
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jul 2 22:43:30 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.6.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.el8
------>
commit fc6c87c44085534a1bb5d0673d95685380033433
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Fri Jul 2 22:43:30 2021 +0300
ploop: Rename ploop_submit_index_wb_sync()
Now it's async
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
==========================
Parallel async BAT pages submission and improvements
[1-15]:
https://jira.sw.ru/browse/PSBM-124550
[16-22]:
following improvements
Kirill Tkhai (22):
ploop: Remove absolet comment
ploop: Add md and piwb cross pointers
ploop: Add @md argument to locate_new_cluster_and_attach_pio()
ploop: Refactoring in process_one_discard_pio()
ploop: Pass type argument to ploop_prepare_bat_update()
ploop: Move md is busy check to delay_if_md_busy()
ploop: Introduce batch list for md pages writeback
ploop: Check for md dirty instead of md piwb
ploop: Reread piwb after ploop_prepare_bat_update()
ploop: Change argument in ploop_prepare_bat_update()
ploop: Return md from ploop_prepare_reloc_index_wb()
ploop: Change arguments and rename ploop_reset_bat_update()
ploop: Allow parallel wb of md pages
ploop: Async md writeback
ploop: Rename ploop_submit_index_wb_sync()
ploop: Resubmit pios from main kwork
ploop: Rename process_delta_wb()
ploop: Do fsync after bat page write
ploop: Do not iterate excess clusters in notify_delta_merged()
ploop: Use kvec in ploop_delta_check_header()
ploop: Add argument to ploop_read_delta_metadata()
ploop: Underline clu and page is u32
---
drivers/md/dm-ploop-cmd.c | 4 ++--
drivers/md/dm-ploop-map.c | 5 ++---
drivers/md/dm-ploop.h | 2 +-
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index 7a5012bbe2fb..00cb83345853 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -321,7 +321,7 @@ static int ploop_grow_relocate_cluster(struct ploop *ploop,
init_completion(&comp);
piwb->comp = ∁
/* Write new index on disk */
- ploop_submit_index_wb_sync(ploop, piwb);
+ ploop_index_wb_submit(ploop, piwb);
wait_for_completion(&comp);
ret = blk_status_to_errno(piwb->bi_status);
@@ -379,7 +379,7 @@ static int ploop_grow_update_header(struct ploop *ploop,
ploop_make_md_wb(ploop, md);
init_completion(&comp);
piwb->comp = ∁
- ploop_submit_index_wb_sync(ploop, piwb);
+ ploop_index_wb_submit(ploop, piwb);
wait_for_completion(&comp);
ret = blk_status_to_errno(piwb->bi_status);
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 319acfa831eb..ce887a885017 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1489,8 +1489,7 @@ static void md_write_endio(struct pio *pio, void *piwb_ptr, blk_status_t bi_stat
ploop_bat_write_complete(piwb, bi_status);
}
-void ploop_submit_index_wb_sync(struct ploop *ploop,
- struct ploop_index_wb *piwb)
+void ploop_index_wb_submit(struct ploop *ploop, struct ploop_index_wb *piwb)
{
loff_t pos = (loff_t)piwb->page_id << PAGE_SHIFT;
struct pio *pio = piwb->pio;
@@ -1608,7 +1607,7 @@ static void submit_metadata_writeback(struct ploop *ploop)
md->status &= ~MD_DIRTY;
write_unlock_irq(&ploop->bat_rwlock);
- ploop_submit_index_wb_sync(ploop, md->piwb);
+ ploop_index_wb_submit(ploop, md->piwb);
}
}
diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index 1634ba8fc5da..4471c3ecb5df 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -542,7 +542,7 @@ extern void map_and_submit_rw(struct ploop *ploop, u32 dst_clu, struct pio *pio,
extern int ploop_prepare_reloc_index_wb(struct ploop *, struct md_page **,
unsigned int, unsigned int *);
extern void ploop_break_bat_update(struct ploop *ploop, struct md_page *);
-extern void ploop_submit_index_wb_sync(struct ploop *, struct ploop_index_wb *);
+extern void ploop_index_wb_submit(struct ploop *, struct ploop_index_wb *);
extern int ploop_message(struct dm_target *ti, unsigned int argc, char **argv,
char *result, unsigned int maxlen);
More information about the Devel
mailing list