]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
blkcg: Annotate blkg_hint correctly
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 23 Sep 2016 16:07:56 +0000 (09:07 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:54:03 +0000 (03:54 +0000)
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 <bart.vanassche@sandisk.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
[bwh: Backported to 3.16: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
block/blk-cgroup.h

index d3fd7aa3d2a369f9ef0017ece713965c95529e82..7485c59ff625be93111d13f264390a91fabefacd 100644 (file)
@@ -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 */