From ea1c052896d88cbc8fd777998cc6ae7c8865f0d2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 23 Sep 2016 09:07:56 -0700 Subject: [PATCH] blkcg: Annotate blkg_hint correctly commit 55679c8d23d191c24ad133abc5647e3054ca8de1 upstream. Avoid that sparse complains about blkg_hint manipulations. Fixes: a637120e4902 ("blkcg: use radix tree to index blkgs from blkcg") Signed-off-by: Bart Van Assche Acked-by: Tejun Heo Signed-off-by: Jens Axboe [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- block/blk-cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index d3fd7aa3d2a36..7485c59ff625b 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -47,7 +47,7 @@ struct blkcg { spinlock_t lock; struct radix_tree_root blkg_tree; - struct blkcg_gq *blkg_hint; + struct blkcg_gq __rcu *blkg_hint; struct hlist_head blkg_list; /* for policies to test whether associated blkcg has changed */ -- 2.47.3