aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
AgeCommit message (Expand)AuthorFilesLines
5 daysMerge tag 'for-6.10/block-20240511' of git://git.kernel.dk/linuxLinus Torvalds1-8/+1
9 daysblk-throttle: delay initialization until configurationYu Kuai1-6/+0
2024-04-07block: fix q->blkg_list corruption during disk rebindMing Lei1-3/+6
2024-04-01blk-cgroup: use bio_list_merge_initChristoph Hellwig1-2/+1
2024-02-05block: add blk_time_get_ns() and blk_time_get() helpersJens Axboe1-1/+1
2024-01-15block: Correct a documentation comment in blk-cgroup.cNicky Chorley1-1/+1
2024-01-04blk-cgroup: don't use removal safe list iteratorsDaniel Vacek1-2/+2
2023-12-18block: skip cgroups for passthrough ioKundan Kumar1-0/+3
2023-11-17blk-cgroup: bypass blkcg_deactivate_policy after destroyingMing Lei1-0/+13
2023-08-29Merge tag 'for-6.6/block-2023-08-28' of git://git.kernel.dk/linuxLinus Torvalds1-14/+18
2023-08-18blk-cgroup: hold queue_lock when removing blkg->q_nodeMing Lei1-0/+2
2023-08-17blk-cgroup: Fix NULL deref caused by blkg_policy_data being installed before ...Tejun Heo1-14/+18
2023-06-28Merge branch 'for-6.5/block-late' into block-6.5Jens Axboe1-2/+4
2023-06-26Merge tag 'for-6.5/block-2023-06-23' of git://git.kernel.dk/linuxLinus Torvalds1-0/+14
2023-06-25blk-throttle: Fix io statistics for cgroup v1Jinke Han1-2/+4
2023-06-22block: make sure local irq is disabled when calling __blkcg_rstat_flushMing Lei1-2/+3
2023-06-11blk-cgroup: Flush stats before releasing blkcg_gqMing Lei1-9/+31
2023-06-07blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats()Waiman Long1-0/+5
2023-05-23block/rq_qos: protect rq_qos apis with a new lockYu Kuai1-0/+9
2023-05-06Merge tag 'for-6.4/block-2023-05-06' of git://git.kernel.dk/linuxLinus Torvalds1-0/+3
2023-04-28block: Skip destroyed blkg when restart in blkg_destroy_all()Tao Su1-0/+3
2023-04-26Merge tag 'for-6.4/block-2023-04-21' of git://git.kernel.dk/linuxLinus Torvalds1-78/+69
2023-04-17block: make blkcg_punt_bio_submit optionalChristoph Hellwig1-35/+42
2023-04-17block: async_bio_lock does not need to be bh-safeChristoph Hellwig1-4/+4
2023-04-17btrfs, block: move REQ_CGROUP_PUNT to btrfsChristoph Hellwig1-14/+17
2023-04-13blk-iolatency: Make initialization lazyTejun Heo1-8/+0
2023-04-13blkcg: Restructure blkg_conf_prep() and friendsTejun Heo1-38/+67
2023-04-13blkcg: Drop unnecessary RCU read [un]locks from blkg_conf_prep/finish()Tejun Heo1-9/+4
2023-04-06blk-cgroup: delete cpd_init_fn of blkcg_policyChengming Zhou1-4/+0
2023-04-06blk-cgroup: delete cpd_bind_fn of blkcg_policyChengming Zhou1-21/+0
2023-02-20Merge tag 'for-6.3/block-2023-02-16' of git://git.kernel.dk/linuxLinus Torvalds1-59/+91
2023-02-14Revert "blk-cgroup: pin the gendisk in struct blkcg_gq"Christoph Hellwig1-17/+18
2023-02-14Revert "blk-cgroup: pass a gendisk to blkg_lookup"Christoph Hellwig1-8/+8
2023-02-14Revert "blk-cgroup: move the cgroup information to struct gendisk"Christoph Hellwig1-33/+33
2023-02-09Revert "blk-cgroup: simplify blkg freeing from initialization failure paths"Christoph Hellwig1-7/+20
2023-02-07block, bfq: cleanup 'bfqg->online'Yu Kuai1-1/+1
2023-02-06blk-cgroup: fix freeing NULL blkg in blkg_createChristoph Hellwig1-1/+2
2023-02-03blk-cgroup: move the cgroup information to struct gendiskChristoph Hellwig1-33/+33
2023-02-03blk-cgroup: pass a gendisk to blkg_lookupChristoph Hellwig1-8/+8
2023-02-03blk-cgroup: pass a gendisk to pd_alloc_fnChristoph Hellwig1-5/+5
2023-02-03blk-cgroup: pass a gendisk to blkcg_{de,}activate_policyChristoph Hellwig1-10/+11
2023-02-03blk-cgroup: store a gendisk to throttle in struct task_structChristoph Hellwig1-17/+15
2023-02-03blk-cgroup: pin the gendisk in struct blkcg_gqChristoph Hellwig1-18/+17
2023-02-03blk-cgroup: remove the !bdi->dev check in blkg_dev_nameChristoph Hellwig1-1/+1
2023-02-03blk-cgroup: simplify blkg freeing from initialization failure pathsChristoph Hellwig1-20/+7
2023-02-03blk-cgroup: improve error unwinding in blkg_allocChristoph Hellwig1-20/+19
2023-02-01blk-cgroup: don't update io stat for root cgroupMing Lei1-0/+4
2023-01-29blk-cgroup: synchronize pd_free_fn() from blkg_free_workfn() and blkcg_deacti...Yu Kuai1-6/+29
2023-01-29blk-cgroup: support to track if policy is onlineYu Kuai1-7/+17
2023-01-29blk-cgroup: dropping parent refcount after pd_free_fn() is doneYu Kuai1-2/+2
2023-01-16blk-cgroup: fix missing pd_online_fn() while activating policyYu Kuai1-0/+4
2022-12-14blk-iolatency: Fix memory leak on add_disk() failuresTejun Heo1-0/+2
2022-12-13Merge tag 'for-6.2/block-2022-12-08' of git://git.kernel.dk/linuxLinus Torvalds1-17/+77
2022-12-08blk-cgroup: Fix typo in commentKemeng Shi1-2/+2
2022-12-01blk-cgroup: Fix some kernel-doc commentsYang Li1-1/+1
2022-11-30Revert "blk-cgroup: Flush stats at blkgs destruction path"Jens Axboe1-14/+1
2022-11-16blk-cgroup: Flush stats at blkgs destruction pathWaiman Long1-1/+14
2022-11-16blk-cgroup: Optimize blkcg_rstat_flush()Waiman Long1-6/+70
2022-11-16blk-cgroup: Return -ENOMEM directly in blkcg_css_alloc() error pathWaiman Long1-8/+4
2022-11-14blk-cgroup: properly pin the parent in blkcg_css_onlineChris Mason1-1/+1
2022-09-27blk-cgroup: don't update the blkg lookup hint in blkg_conf_prepChristoph Hellwig1-13/+4
2022-09-26blk-cgroup: pass a gendisk to the blkg allocation helpersChristoph Hellwig1-28/+28
2022-09-26blk-cgroup: pass a gendisk to blkcg_schedule_throttleChristoph Hellwig1-3/+5
2022-09-26blk-cgroup: pass a gendisk to blkg_destroy_allChristoph Hellwig1-9/+4
2022-09-26blk-throttle: pass a gendisk to blk_throtl_init and blk_throtl_exitChristoph Hellwig1-3/+3
2022-09-26blk-iolatency: pass a gendisk to blk_iolatency_initChristoph Hellwig1-1/+1
2022-09-26blk-ioprio: pass a gendisk to blk_ioprio_init and blk_ioprio_exitChristoph Hellwig1-2/+2
2022-09-26blk-cgroup: pass a gendisk to blkcg_init_queue and blkcg_exit_queueChristoph Hellwig1-20/+5
2022-09-26blk-cgroup: remove blkg_lookup_checkChristoph Hellwig1-26/+10
2022-09-26blk-cgroup: cleanup the blkg_lookup family of functionsChristoph Hellwig1-23/+15
2022-09-26blk-cgroup: remove open coded blkg_lookup instancesChristoph Hellwig1-3/+3
2022-09-26blk-cgroup: remove blk_queue_root_blkgChristoph Hellwig1-2/+1
2022-09-26blk-cgroup: fix error unwinding in blkcg_init_queueChristoph Hellwig1-6/+7
2022-07-12blk-cgroup: Use atomic{,64}_try_cmpxchgUros Bizjak1-1/+1
2022-06-29blk-cgroup: factor out blkcg_free_all_cpd()Jason Yan1-18/+18
2022-06-29blk-cgroup: factor out blkcg_iostat_update()Jason Yan1-17/+20
2022-06-27blk-ioprio: Convert from rqos policy to direct callJan Kara1-0/+1
2022-06-02block: fix bio_clone_blkg_association() to associate with proper blkcg_gqJan Kara1-6/+2
2022-05-18blk-cgroup: delete rcu_read_lock_held() WARN_ON_ONCE()Jens Axboe1-1/+0
2022-05-17blk-cgroup: Remove unnecessary rcu_read_lock/unlock()Fanjun Kong1-3/+1
2022-05-17blk-cgroup: always terminate io.stat linesWolfgang Bumiller1-7/+2
2022-05-02blk-cgroup: cleanup blkcg_maybe_throttle_currentChristoph Hellwig1-7/+1
2022-05-02blk-cgroup: cleanup blk_cgroup_congestedChristoph Hellwig1-5/+1
2022-05-02blk-cgroup: move blkcg_css to blk-cgroup.cChristoph Hellwig1-0/+17
2022-05-02blk-cgroup: replace bio_blkcg with bio_blkcg_cssChristoph Hellwig1-1/+17
2022-05-02blk-cgroup: move struct blkcg to block/blk-cgroup.hChristoph Hellwig1-1/+8
2022-05-02blk-cgroup: move blkcg_{pin,unpin}_online out of lineChristoph Hellwig1-23/+65
2022-05-02blk-cgroup: move blk_cgroup_congested out lineChristoph Hellwig1-0/+20
2022-04-01Merge tag 'for-5.18/block-2022-04-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-10/+22
2022-03-28Merge tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2022-03-22block: avoid calling blkg_free() in atomic contextMing Lei1-10/+22
2022-03-18block: let blkcg_gq grab request queue's refcntMing Lei1-0/+5
2022-03-10resume_user_mode: Move to resume_user_mode.hEric W. Biederman1-1/+1
2022-02-15blk-cgroup: set blkg iostat after percpu stat aggregationChengming Zhou1-5/+5
2022-02-11block: partition include/linux/blk-cgroup.hMing Lei1-1/+1
2022-02-11block: move initialization of q->blkg_list into blkcg_init_queueMing Lei1-0/+2
2022-02-02block: remove genhd.hChristoph Hellwig1-1/+0
2021-11-29block: don't include <linux/part_stat.h> in blk.hChristoph Hellwig1-0/+1
2021-11-19blk-cgroup: fix missing put device in error path from blkg_conf_pref()Yu Kuai1-4/+5
2021-10-25blk-cgroup: synchronize blkg creation against policy deactivationYu Kuai1-0/+10
2021-10-18block: convert the rest of block to bdev_get_queuePavel Begunkov1-8/+8
2021-10-18block: move blk-throtl fast path inlineJens Axboe1-0/+1
2021-10-18blk-cgroup: blk_cgroup_bio_start() should use irq-safe operations on blkg->io...Tejun Heo1-2/+3
2021-09-15blk-cgroup: fix UAF by grabbing blkcg lock before destroying blkg pdLi Jinlin1-0/+8
2021-09-15blkcg: fix memory leak in blk_iolatency_initYanfei Xu1-4/+6
2021-08-30Merge tag 'for-5.15/block-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-79/+60
2021-08-23block: add an explicit ->disk backpointer to the request_queueChristoph Hellwig1-2/+2
2021-08-16blk-cgroup: stop using seq_get_bufChristoph Hellwig1-24/+6
2021-08-16blk-cgroup: refactor blkcg_print_statChristoph Hellwig1-74/+74
2021-08-09block: move the bdi from the request_queue to the gendiskChristoph Hellwig1-4/+3
2021-07-27cgroup: rstat: fix A-A deadlock on 32bit around u64_stats_syncTejun Heo1-6/+8
2021-07-07blk-cgroup: prevent rcu_sched detected stalls warnings while iterating blkgsYu Kuai1-0/+15
2021-06-21block: Introduce the ioprio rq-qos policyBart Van Assche1-0/+5
2021-06-21block/blk-cgroup: Swap the blk_throtl_init() and blk_iolatency_init() callsBart Van Assche1-5/+4
2021-05-24blkcg: drop CLONE_IO check in blkcg_can_attach()Tejun Heo1-27/+0
2021-04-30cgroup: rstat: punt root-level optimization to individual controllersJohannes Weiner1-6/+11
2021-02-21Merge tag 'for-5.12/block-2021-02-17' of git://git.kernel.dk/linux-blockLinus Torvalds1-10/+12
2021-01-28blk-cgroup: Remove obsolete macroBaolin Wang1-2/+0
2021-01-28blk-cgroup: Use cond_resched() when destroy blkgsBaolin Wang1-5/+13
2021-01-26blkcg: delete redundant get/put operations for queueChunguang Xu1-5/+8
2021-01-24block: store a block_device pointer in struct bioChristoph Hellwig1-3/+4
2020-12-01block: merge struct block_device and struct hd_structChristoph Hellwig1-4/+4
2020-12-01block: move disk stat accounting to struct block_deviceChristoph Hellwig1-1/+1
2020-12-01block: simplify bdev/disk lookup in blkdev_getChristoph Hellwig1-21/+21
2020-10-26blk-cgroup: Pre-allocate tree node on blkg_conf_prepGabriel Krisman Bertazi1-2/+12
2020-10-26blk-cgroup: Fix memleak on error pathGabriel Krisman Bertazi1-0/+1
2020-09-10blkcg: add plugging support for punt bioXianting Tian1-0/+9
2020-09-01blk-iocost: implement delay adjustment hysteresisTejun Heo1-6/+17
2020-08-21blkcg: fix memleak for iolatencyYufen Yu1-3/+5
2020-07-17blk-cgroup: show global disk stats in root cgroup io.statBoris Burkov1-2/+55
2020-07-17blk-cgroup: make iostat functions visible to stat printingBoris Burkov1-71/+71
2020-07-08writeback: remove struct bdi_writeback_congestedChristoph Hellwig1-17/+2
2020-07-01block: move ->make_request_fn to struct block_device_operationsChristoph Hellwig1-1/+1
2020-06-30blk-cgroup: clean up indentationColin Ian King1-1/+1
2020-06-29blk-cgroup: remove blkcg_bio_issue_checkChristoph Hellwig1-0/+34
2020-06-29block: move the initial blkg lookup into blkg_tryget_closestChristoph Hellwig1-19/+14
2020-06-29block: bypass blkg_tryget_closest for the root_blkgChristoph Hellwig1-5/+10
2020-06-29block: merge blkg_lookup_create and __blkg_lookup_createChristoph Hellwig1-31/+18
2020-06-29block: move the bio cgroup associatation helpers to blk-cgroup.cChristoph Hellwig1-2/+101
2020-05-09Merge branch 'block-5.7' into for-5.8/blockJens Axboe1-1/+1
2020-05-09bdi: use bdi_dev_name() to get device nameYufen Yu1-1/+1
2020-04-30blk-iocost: switch to fixed non-auto-decaying use_delayTejun Heo1-0/+6
2020-04-01blkcg: don't offline parent blkcg firstTejun Heo1-0/+16
2020-04-01blkcg: rename blkcg->cgwb_refcnt to ->online_pin and always use itTejun Heo1-3/+3
2020-03-27block: simplify queue allocationChristoph Hellwig1-1/+1
2019-12-12blk-cgroup: remove blkcg_drain_queueGuoqing Jiang1-20/+0
2019-11-07blk-cgroup: separate out blkg_rwstat under CONFIG_BLK_CGROUP_RWSTATTejun Heo1-97/+0
2019-11-07blk-cgroup: reimplement basic IO stats using cgroup rstatTejun Heo1-25/+99
2019-11-07blk-cgroup: remove now unused blkg_print_stat_{bytes|ios}_recursive()Tejun Heo1-83/+0
2019-11-06blkcg: make blkcg_print_stat() print stats only for online blkgsTejun Heo1-5/+8
2019-10-15blkcg: Fix multiple bugs in blkcg_activate_policy()Tejun Heo1-18/+51
2019-09-14bfq: Fix bfq linkage errorPavel Begunkov1-0/+2
2019-08-28blkcg: separate blkcg_conf_get_disk() out of blkg_conf_prep()Tejun Heo1-19/+43
2019-08-28blkcg: make ->cpd_init_fn() optionalTejun Heo1-1/+2
2019-08-28blkcg: pass @q and @blkcg into blkcg_pol_alloc_pd_fn()Tejun Heo1-3/+3
2019-07-16blkcg: allow blkcg_policy->pd_stat() to print non-debug info tooTejun Heo1-6/+3
2019-07-10blkcg: implement REQ_CGROUP_PUNTTejun Heo1-0/+53
2019-07-10cgroup, blkcg: Prepare some symbols for module and !CONFIG_CGROUP usagesTejun Heo1-0/+1
2019-07-10blk-cgroup: turn on psi memstall stuffJosef Bacik1-5/+7
2019-06-20blk-cgroup: move struct blkg_stat to bfqChristoph Hellwig1-56/+0
2019-06-20blk-cgroup: introduce a new struct blkg_rwstat_sampleChristoph Hellwig1-20/+19
2019-06-20blk-cgroup: pass blkg_rwstat structures by referenceChristoph Hellwig1-15/+16
2019-06-20blk-cgroup: factor out a helper to read rwstat counterChristoph Hellwig1-3/+2
2019-06-15blkcg: blkcg_activate_policy() should initialize ancestors firstTejun Heo1-1/+2
2019-06-15blkcg: perpcu_ref init/exit should be done from blkg_alloc/free()Tejun Heo1-9/+4
2019-06-15blkcg: update blkcg_print_stat() to handle larger outputsTejun Heo1-2/+6
2019-06-05block: Drop unlikely before IS_ERR(_OR_NULL)Kefeng Wang1-1/+1
2019-04-30block: add SPDX tags to block layer files missing licensing informationChristoph Hellwig1-0/+1
2019-03-20blkcg: Fix kernel-doc warningsBart Van Assche1-4/+5
2019-02-10blk-cgroup: Fix doc related to blkcg_exit_queueMarcos Paulo de Souza1-1/+1
2018-12-21blkcg: remove unused __blkg_release_rcu()Dennis Zhou1-23/+0
2018-12-19block: save irq state in blkg_lookup_create()Ming Lei1-2/+4
2018-12-12blkcg: handle dying request_queue when associating a blkgDennis Zhou1-0/+6
2018-12-07blkcg: rename blkg_try_get() to blkg_tryget()Dennis Zhou1-2/+1
2018-12-07blkcg: change blkg reference counting to use percpu_refDennis Zhou1-2/+39
2018-12-07blkcg: convert blkg_lookup_create() to find closest blkgDennis Zhou1-7/+16
2018-12-07blkcg: update blkg_lookup_create() to do lockingDennis Zhou1-3/+25
2018-11-16block: add queue_is_mq() helperJens Axboe1-4/+4
2018-11-15block: remove the queue_lock indirectionChristoph Hellwig1-31/+31
2018-11-15blk-cgroup: move locking into blkg_destroy_allChristoph Hellwig1-7/+2
2018-11-15blk-cgroup: consolidate error handling in blkcg_init_queueChristoph Hellwig1-12/+10
2018-11-15block: remove a few unused exportsChristoph Hellwig1-6/+0
2018-11-15block: remove QUEUE_FLAG_BYPASS and ->bypassChristoph Hellwig1-15/+0
2018-11-07block: remove request_list codeJens Axboe1-47/+0
2018-11-07blk-cgroup: remove legacy queue bypassingJens Axboe1-8/+0
2018-11-01blkcg: revert blkcg cleanups seriesDennis Zhou1-85/+38
2018-10-01Merge tag 'v4.19-rc6' into for-4.20/blockJens Axboe1-1/+3
2018-09-21blkcg: rename blkg_try_get to blkg_trygetDennis Zhou (Facebook)1-2/+1
2018-09-21blkcg: change blkg reference counting to use percpu_refDennis Zhou (Facebook)1-25/+39
2018-09-21blkcg: convert blkg_lookup_create to find closest blkgDennis Zhou (Facebook)1-8/+17
2018-09-21blkcg: update blkg_lookup_create to do lockingDennis Zhou (Facebook)1-3/+28
2018-09-11blk-cgroup: increase number of supported policiesJens Axboe1-1/+3
2018-08-31blkcg: delay blkg destruction until after writeback has finishedDennis Zhou (Facebook)1-8/+45
2018-08-31Revert "blk-throttle: fix race between blkcg_bio_issue_check() and cgroup_rmd...Dennis Zhou (Facebook)1-62/+16
2018-08-01blk-cgroup: hold the queue ref during throttlingJosef Bacik1-1/+1
2018-07-18blkcg: Track DISCARD statistics and output them in cgroup io.statTejun Heo1-4/+9
2018-07-09block: introduce blk-iolatency io controllerJosef Bacik1-0/+8
2018-07-09blkcg: add generic throttling mechanismJosef Bacik1-0/+220
2018-07-09blk-cgroup: allow controllers to output their own statsJosef Bacik1-3/+44
2018-04-19blkcg: init root blkcg_gq under lockJiang Biao1-6/+11