[Devel] [PATCH RHEL8 COMMIT] ploop: Use pio_endio() in ploop_bat_write_complete()
Konstantin Khorenko
khorenko at virtuozzo.com
Mon May 17 19:04:54 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.30
------>
commit 651ee044a3466c18fcdf0b01efa61eb57b0c63c2
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Mon May 17 19:04:54 2021 +0300
ploop: Use pio_endio() in ploop_bat_write_complete()
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
=====================
Patchset description:
dm-ploop: Kill loop
Intermediate patches can't be base for bisect.
In scope of https://jira.sw.ru/browse/PSBM-123654
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/md/dm-ploop-map.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index fec9d16d8c0d..46cc98c945e8 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -667,8 +667,8 @@ static void put_piwb(struct ploop_index_wb *piwb)
static void ploop_bat_write_complete(struct ploop_index_wb *piwb,
blk_status_t bi_status)
{
- struct bio *data_bio, *cluster_bio;
struct ploop *ploop = piwb->ploop;
+ struct bio *cluster_bio;
struct ploop_cow *cow;
struct pio *data_pio;
unsigned long flags;
@@ -695,11 +695,9 @@ static void ploop_bat_write_complete(struct ploop_index_wb *piwb,
* add a new element after piwc->completed is true.
*/
while ((data_pio = pio_list_pop(&piwb->ready_data_pios)) != NULL) {
- data_bio = dm_bio_from_per_bio_data(data_pio, sizeof(*data_pio));
if (bi_status)
- data_bio->bi_status = bi_status;
- if (data_bio->bi_end_io)
- data_bio->bi_end_io(data_bio);
+ data_pio->bi_status = bi_status;
+ pio_endio(data_pio);
}
while ((cluster_bio = bio_list_pop(&piwb->cow_list))) {
More information about the Devel
mailing list