[Devel] [PATCH RH8 46/61] ploop: Assign ploop to pio

Kirill Tkhai ktkhai at virtuozzo.com
Fri May 14 18:58:44 MSK 2021


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