[Devel] [PATCH RHEL8 COMMIT] ploop: Assign ploop to pio

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 17 19:05:00 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 7f008484c402bfbf691b2f6ec0528b8792d00ca4
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon May 17 19:04:59 2021 +0300

    ploop: Assign ploop to pio
    
    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 | 1 +
 drivers/md/dm-ploop.h     | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index cd30ff8e238a..42ed305a32f0 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -84,6 +84,7 @@ static void ploop_index_wb_init(struct ploop_index_wb *piwb, struct ploop *ploop
 
 static void init_pio(struct ploop *ploop, struct pio *pio)
 {
+	pio->ploop = ploop;
 	pio->action = PLOOP_END_IO_NONE;
 	pio->ref_index = PLOOP_REF_INDEX_INVALID;
 	pio->bi_status = BLK_STS_OK;
diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index c3cc2127a8d2..514ab38a8ae2 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -233,8 +233,9 @@ struct pio;
 typedef void (*ploop_endio_t)(struct pio *, void *, blk_status_t);
 
 struct pio {
-	struct list_head list;
+	struct ploop *ploop;
 
+	struct list_head list;
 	struct rb_node node;
 	/* List of pios, which will be queued from this pio end */
 	struct list_head endio_list;


More information about the Devel mailing list