aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/blk-cgroup.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-04-20 06:27:13 +0200
committerJens Axboe <axboe@kernel.dk>2022-05-02 14:06:20 -0600
commit216889aad362b5b7e998a5371348b5e95d485dd1 (patch)
treec9e1e20f2cb9644e76c930019947804657362c5b /include/linux/blk-cgroup.h
parentblk-cgroup: move blkcg_{get,set}_fc_appid out of line (diff)
downloadwireguard-linux-216889aad362b5b7e998a5371348b5e95d485dd1.tar.xz
wireguard-linux-216889aad362b5b7e998a5371348b5e95d485dd1.zip
blk-cgroup: move blk_cgroup_congested out line
There is no urgent need to inline this function, so move it out of line. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20220420042723.1010598-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk-cgroup.h')
-rw-r--r--include/linux/blk-cgroup.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h
index 7a2f7de30173..988965c1c27b 100644
--- a/include/linux/blk-cgroup.h
+++ b/include/linux/blk-cgroup.h
@@ -135,25 +135,7 @@ static inline struct blkcg *bio_blkcg(struct bio *bio)
return NULL;
}
-static inline bool blk_cgroup_congested(void)
-{
- struct cgroup_subsys_state *css;
- bool ret = false;
-
- rcu_read_lock();
- css = kthread_blkcg();
- if (!css)
- css = task_css(current, io_cgrp_id);
- while (css) {
- if (atomic_read(&css->cgroup->congestion_count)) {
- ret = true;
- break;
- }
- css = css->parent;
- }
- rcu_read_unlock();
- return ret;
-}
+bool blk_cgroup_congested(void);
/**
* blkcg_parent - get the parent of a blkcg