diff options
author | Tejun Heo <tj@kernel.org> | 2012-03-19 15:10:56 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-20 12:47:47 +0100 |
commit | 9a9e8a26da4c2c5ddc60999bdea957935fb22b6b (patch) | |
tree | 5a42ef29c2c34174390e4ccf9a2924c0ade6f340 /block/blk-cgroup.h | |
parent | edf1b879e308d37b5b7c414476ab39f79650a253 (diff) | |
download | linux-9a9e8a26da4c2c5ddc60999bdea957935fb22b6b.tar.bz2 |
blkcg: add blkcg->id
Add 64bit unique id to blkcg. This will be used by policies which
want blkcg identity test to tell whether the associated blkcg has
changed.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 9df5ab04b6d6..1cb8f7643258 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -116,6 +116,9 @@ struct blkio_cgroup { unsigned int weight; spinlock_t lock; struct hlist_head blkg_list; + + /* for policies to test whether associated blkcg has changed */ + uint64_t id; }; struct blkio_group_stats { |