mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cfq: Remove useless css reference get
There's no need to take css reference here, for the caller has already called rcu_read_lock() to prevent cgroup from being removed. Signed-off-by: Gui Jianfeng <[email protected]> Reviewed-by: Li Zefan <[email protected]> Acked-by: Vivek Goyal <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
7f03292ee1
commit
024f906616
3 changed files with 0 additions and 22 deletions
|
|
@ -23,20 +23,6 @@ static LIST_HEAD(blkio_list);
|
|||
struct blkio_cgroup blkio_root_cgroup = { .weight = 2*BLKIO_WEIGHT_DEFAULT };
|
||||
EXPORT_SYMBOL_GPL(blkio_root_cgroup);
|
||||
|
||||
bool blkiocg_css_tryget(struct blkio_cgroup *blkcg)
|
||||
{
|
||||
if (!css_tryget(&blkcg->css))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(blkiocg_css_tryget);
|
||||
|
||||
void blkiocg_css_put(struct blkio_cgroup *blkcg)
|
||||
{
|
||||
css_put(&blkcg->css);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(blkiocg_css_put);
|
||||
|
||||
struct blkio_cgroup *cgroup_to_blkio_cgroup(struct cgroup *cgroup)
|
||||
{
|
||||
return container_of(cgroup_subsys_state(cgroup, blkio_subsys_id),
|
||||
|
|
|
|||
Loading…
Reference in a new issue