aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
AgeCommit message (Expand)AuthorFilesLines
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-77/+58
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-72/+72
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-6/+15
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-84/+37
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-7/+16
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
2018-04-19blkcg: small fix on comment in blkcg_init_queueJiang Biao1-5/+1
2018-04-18blkcg: don't hold blkcg lock when deactivating policyJiang Biao1-5/+0
2018-03-16blk-throttle: fix race between blkcg_bio_issue_check() and cgroup_rmdir()Joseph Qi1-16/+62
2018-02-26genhd: Add helper put_disk_and_module()Jan Kara1-9/+2
2017-11-04blkcg: add sanity check for blkcg policy operationsweiping zhang1-0/+5
2017-10-10blkcg: check pol->cpd_free_fn before free cpdweiping zhang1-2/+2
2017-08-25blkcg: avoid free blkcg_root when failed to alloc blkcg policyweiping zhang1-3/+5
2017-06-01block: Avoid that blk_exit_rl() triggers a use-after-freeBart Van Assche1-1/+1
2017-03-29blkcg: allocate struct blkcg_gq outside request queue spinlockTahsin Erdogan1-25/+98
2017-03-29Revert "blkcg: allocate struct blkcg_gq outside request queue spinlock"Jens Axboe1-87/+51
2017-03-28blkcg: allocate struct blkcg_gq outside request queue spinlockTahsin Erdogan1-51/+87
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2017-02-03blkcg: fix double free of new_blkg in blkcg_init_queueHou Tao1-3/+1
2017-02-02block: Use pointer to backing_dev_info from request_queueJan Kara1-3/+3
2017-01-18blk-cgroup: don't quiesce the queue on policy activate/deactivateJens Axboe1-12/+8
2017-01-18blk-cgroup: ensure that we clear the stop bit on quiesced queuesJens Axboe1-4/+6
2017-01-17blk-mq-sched: add framework for MQ capable IO schedulersJens Axboe1-4/+20
2016-11-22block,blkcg: use __GFP_NOWARN for best-effort allocations in blkcgTejun Heo1-4/+5
2016-09-30blkcg: Unlock blkcg_pol_mutex only once when cpd == NULLBart Van Assche1-3/+1
2016-06-14block/blk-cgroup.c: Declare local symbols staticBart Van Assche1-2/+2
2016-02-09block: fix module reference leak on put_disk() call for cgroups throttleRoman Pen1-0/+9
2015-12-03cgroup: fix handling of multi-destination migration from subtree_control enab...Tejun Heo1-3/+3
2015-11-05Merge branch 'for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-0/+1
2015-10-22blkcg: don't create "io.stat" on the root cgroupTejun Heo1-0/+1
2015-09-19Merge branch 'for-linus' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+3
2015-09-11block: blkg_destroy_all() should clear q->root_blkg and ->root_rl.blkgTejun Heo1-0/+3
2015-08-18blkcg: use CGROUP_WEIGHT_* scale for io.weight on the unified hierarchyTejun Heo1-0/+21
2015-08-18blkcg: implement interface for the unified hierarchyTejun Heo1-0/+53
2015-08-18blkcg: misc preparations for unified hierarchy interfaceTejun Heo1-1/+2
2015-08-18blkcg: move body parsing from blkg_conf_prep() to its callersTejun Heo1-8/+14
2015-08-18blkcg: mark existing cftypes as legacyTejun Heo1-6/+6
2015-08-18blkcg: rename subsystem name from blkio to ioTejun Heo1-3/+4
2015-08-18blkcg: refine error codes returned during blkcg configurationTejun Heo1-6/+6
2015-08-18blkcg: reduce stack usage of blkg_rwstat_recursive_sum()Tejun Heo1-6/+4
2015-08-18blkcg: move io_service_bytes and io_serviced stats into blkcg_gqTejun Heo1-0/+98
2015-08-18blkcg: make blkg_[rw]stat_recursive_sum() to be able to index into blkcg_gqTejun Heo1-27/+42
2015-08-18blkcg: make blkcg_[rw]stat per-cpuTejun Heo1-4/+6
2015-08-18blkcg: add blkg_[rw]stat->aux_cnt and replace cfq_group->dead_stats with itTejun Heo1-4/+6
2015-08-18blkcg: consolidate blkg creation in blkcg_bio_issue_check()Tejun Heo1-1/+1
2015-08-18blkcg: inline [__]blkg_lookup()Tejun Heo1-36/+2
2015-08-18blkcg: replace blkcg_policy->cpd_size with ->cpd_alloc/free_fn() methodsTejun Heo1-15/+24
2015-08-18blkcg: minor updates around blkcg_policy_dataTejun Heo1-11/+13
2015-08-18blkcg: make blkcg_policy methods take a pointer to blkcg_policy_dataTejun Heo1-10/+8
2015-08-18blk-throttle: clean up blkg_policy_data alloc/init/exit/free methodsTejun Heo1-11/+0
2015-08-18blkcg: replace blkcg_policy->pd_size with ->pd_alloc/free_fn() methodsTejun Heo1-10/+11
2015-08-18blkcg: make blkcg_activate_policy() allow NULL ->pd_init_fnTejun Heo1-1/+2
2015-08-18blkcg: restructure blkg_policy_data allocation in blkcg_activate_policy()Tejun Heo1-34/+21
2015-08-18blkcg: remove unnecessary blkcg_root handling from css_alloc/free pathsTejun Heo1-15/+10
2015-08-18blkcg: use blkg_free() in blkcg_init_queue() failure pathTejun Heo1-2/+3
2015-08-18blkcg, cfq-iosched: use GFP_NOWAIT instead of GFP_ATOMIC for non-critical all...Tejun Heo1-4/+4
2015-07-22blkcg: fix gendisk reference leak in blkg_conf_prep()Tejun Heo1-1/+5
2015-07-09blkcg: fix blkcg_policy_data allocation bugTejun Heo1-36/+42
2015-07-09blkcg: implement all_blkcgs listTejun Heo1-5/+12
2015-07-09blkcg: blkcg_css_alloc() should grab blkcg_pol_mutex while iterating blkcg_po...Tejun Heo1-0/+4
2015-07-09blkcg: allow blkcg_pol_mutex to be grabbed from cgroup [file] methodsTejun Heo1-19/+21
2015-07-07block/blk-cgroup.c: free per-blkcg data when freeing the blkcgArianna Avanzini1-3/+6
2015-06-25Merge branch 'for-4.2/writeback' of git://git.kernel.dk/linux-blockLinus Torvalds1-58/+65
2015-06-07block, cgroup: implement policy-specific per-blkcg dataArianna Avanzini1-11/+81
2015-06-02writeback, blkcg: associate each blkcg_gq with the corresponding bdi_writebac...Tejun Heo1-2/+15
2015-06-02writeback: make backing_dev_info host cgroup-specific bdi_writebacksTejun Heo1-1/+6
2015-06-02blkcg: add blkcg_root_cssTejun Heo1-0/+2
2015-06-02blkcg: always create the blkcg_gq for the root blkcgTejun Heo1-55/+41
2015-06-02blkcg: move block/blk-cgroup.h to include/linux/blk-cgroup.hTejun Heo1-1/+1
2014-09-08blkcg: remove blkcg->idTejun Heo1-2/+0
2014-08-04Merge branch 'for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-2/+11
2014-07-15cgroup: replace cgroup_add_cftypes() with cgroup_add_legacy_cftypes()Tejun Heo1-1/+2
2014-07-15cgroup: rename cgroup_subsys->base_cftypes to ->legacy_cftypesTejun Heo1-1/+1
2014-07-12blkcg: don't call into policy draining if root_blkg is already goneTejun Heo1-0/+7
2014-07-08blkcg, memcg: make blkcg depend on memcg on the default hierarchyTejun Heo1-0/+8
2014-06-22Revert "block: add __init to blkcg_policy_register"Jens Axboe1-1/+1
2014-06-22blkcg: fix use-after-free in __blkg_release_rcu() by making blkcg_gq refcnt a...Tejun Heo1-5/+2
2014-06-11Merge branch 'for-linus' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2014-06-10block: add __init to blkcg_policy_registerFabian Frederick1-1/+1