Signed-off-by: Kirill Tkhai <[email protected]>
---
 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;


_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to