We are going to move most of pio lists to llists,
so while we have in parallel situations when a pio can be added to a
list or to a llist, let's have a union of both "list" and "llist".

Once we remove all pio.list users, we will remove the "list" field.

Signed-off-by: Konstantin Khorenko <khore...@virtuozzo.com>
---
 drivers/md/dm-ploop.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index 75329adafb56..72adeec17ed7 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -247,7 +247,10 @@ struct pio {
        struct ploop *ploop;
        struct cgroup_subsys_state *css;
 
-       struct list_head list;
+       union {
+               struct list_head list;
+               struct llist_node llist;
+       };
        struct hlist_node hlist_node;
        /* List of pios, which will be queued from this pio end */
        struct list_head endio_list;
-- 
2.43.5

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to