diff mbox

blkcg: Annotate blkg_hint correctly

Message ID a22244c9-c8fa-2538-688e-58b7284dc387@sandisk.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bart Van Assche Sept. 23, 2016, 4:07 p.m. UTC
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>
Cc: Tejun Heo <tj@kernel.org>
---
 include/linux/blk-cgroup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tejun Heo Sept. 23, 2016, 4:53 p.m. UTC | #1
On Fri, Sep 23, 2016 at 09:07:56AM -0700, Bart Van Assche wrote:
> 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>
> Cc: Tejun Heo <tj@kernel.org>

Acked-by: Tejun Heo <tj@kernel.org>

Thanks!
Jens Axboe Sept. 23, 2016, 5:31 p.m. UTC | #2
On 09/23/2016 10:07 AM, Bart Van Assche wrote:
> 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>
> Cc: Tejun Heo <tj@kernel.org>

Applied for 4.9, thanks.
diff mbox

Patch

diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h
index 10648e3..cbdbf34 100644
--- a/include/linux/blk-cgroup.h
+++ b/include/linux/blk-cgroup.h
@@ -45,7 +45,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;
 
 	struct blkcg_policy_data	*cpd[BLKCG_MAX_POLS];