aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
AgeCommit message (Expand)AuthorFilesLines
2025-04-14block: fix resource leak in blk_register_queue() error pathZheng Qixing1-0/+2
2025-03-18block: fix a comment in the queue_attrs[] arrayChristoph Hellwig1-5/+0
2025-03-10block: protect read_ahead_kb using q->limits_lockNilay Shroff1-6/+10
2025-03-10block: protect wbt_lat_usec using q->elevator_lockNilay Shroff1-12/+8
2025-03-10block: protect nr_requests update using q->elevator_lockNilay Shroff1-5/+5
2025-03-10block: introduce a dedicated lock for protecting queue elevator updatesNilay Shroff1-10/+22
2025-03-10block: remove q->sysfs_lock for attributes which don't need itNilay Shroff1-53/+28
2025-03-10block: move q->sysfs_lock and queue-freeze under show/store methodNilay Shroff1-66/+144
2025-03-10block: acquire q->limits_lock while reading sysfs attributesNilay Shroff1-37/+65
2025-01-31block: force noio scope in blk_mq_freeze_queueChristoph Hellwig1-5/+3
2025-01-29block: get rid of request queue ->sysfs_dir_lockNilay Shroff1-5/+0
2025-01-13block: mark GFP_NOIO around sysfs ->store()Ming Lei1-0/+3
2025-01-10block: fix queue freeze vs limits lock order in sysfs store methodsChristoph Hellwig1-8/+10
2025-01-10block: add a store_limit operations for sysfs entriesChristoph Hellwig1-67/+61
2025-01-10block: don't update BLK_FEAT_POLL in __blk_mq_update_nr_hw_queuesChristoph Hellwig1-1/+8
2024-12-18block: Revert "block: Fix potential deadlock while freezing queue and acquiri...Ming Lei1-2/+2
2024-12-13block: Fix potential deadlock while freezing queue and acquiring sysfs_lockNilay Shroff1-2/+2
2024-12-13block: Fix queue_iostats_passthrough_show()Bart Van Assche1-1/+1
2024-11-18block: fix uaf for flush rq while iterating tagsYu Kuai1-4/+2
2024-11-11block: pre-calculate max_zone_append_sectorsChristoph Hellwig1-14/+3
2024-11-07block: Replace sprintf() with sysfs_emit()zhangguopeng1-12/+12
2024-11-07Revert "block: pre-calculate max_zone_append_sectors"Jens Axboe1-3/+14
2024-11-04block: pre-calculate max_zone_append_sectorsChristoph Hellwig1-14/+3
2024-10-22block: enable passthrough command statisticsKeith Busch1-0/+30
2024-10-22block: return void from the queue_sysfs_entry load_module methodChristoph Hellwig1-6/+3
2024-09-10block: Prevent deadlocks when switching elevatorsDamien Le Moal1-1/+21
2024-06-28block: pass a gendisk to the queue_sysfs_entry methodsChristoph Hellwig1-91/+89
2024-06-28block: add helper macros to de-duplicate the queue sysfs attributesChristoph Hellwig1-164/+73
2024-06-26block: convert features and flags to __bitwise typesChristoph Hellwig1-3/+3
2024-06-26block: correctly report cache typeChristoph Hellwig1-3/+3
2024-06-20block: Add core atomic write supportJohn Garry1-0/+33
2024-06-20block: renumber and rename the cache disabled flagChristoph Hellwig1-3/+3
2024-06-19block: move the poll flag to queue_limitsChristoph Hellwig1-2/+2
2024-06-19block: move the stable_writes flag to queue_limitsChristoph Hellwig1-28/+1
2024-06-19block: move the io_stat flag setting to queue_limitsChristoph Hellwig1-1/+1
2024-06-19block: move the add_random flag to queue_limitsChristoph Hellwig1-3/+3
2024-06-19block: move the nonrot flag to queue_limitsChristoph Hellwig1-3/+36
2024-06-19block: move cache control settings out of queue->flagsChristoph Hellwig1-10/+19
2024-06-19block: freeze the queue in queue_attr_storeChristoph Hellwig1-7/+2
2024-05-09blk-throttle: delay initialization until configurationYu Kuai1-1/+0
2024-05-09blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOWYu Kuai1-7/+0
2024-04-17block: Allow zero value of max_zone_append_sectors queue limitDamien Le Moal1-1/+1
2024-02-13block: use queue_limits_commit_update in queue_discard_max_storeChristoph Hellwig1-3/+10
2024-02-13block: add a max_user_discard_sectors queue limitChristoph Hellwig1-9/+8
2024-02-13block: use queue_limits_commit_update in queue_max_sectors_storeChristoph Hellwig1-25/+12
2024-01-11Merge tag 'for-6.8/block-2024-01-08' of git://git.kernel.dk/linuxLinus Torvalds1-8/+3
2023-12-27block: rename and document BLK_DEF_MAX_SECTORSChristoph Hellwig1-1/+1
2023-12-19block: remove support for the host aware zone modelChristoph Hellwig1-7/+2
2023-11-29block: Document the role of the two attribute groupsBart Van Assche1-0/+2
2023-07-17block: don't allow enabling a cache on devices that don't support itChristoph Hellwig1-4/+7
2023-07-17block: cleanup queue_wc_storeChristoph Hellwig1-11/+3
2023-06-26blk-sysfs: add a new attr_group for blk_mqYu Kuai1-11/+31
2023-06-26blk-wbt: don't create wbt sysfs entry if CONFIG_BLK_WBT is disabledYu Kuai1-69/+74
2023-04-13blk-mq: include <linux/blk-mq.h> in block/blk-mq.hChristoph Hellwig1-1/+0
2023-03-20blk-mq: remove hybrid pollingKeith Busch1-24/+1
2023-02-09block: make kobj_type structures constantThomas Weißschuh1-1/+1
2023-02-03blk-wbt: move private information from blk-wbt.h to blk-wbt.cChristoph Hellwig1-0/+1
2023-02-03blk-wbt: pass a gendisk to wbt_initChristoph Hellwig1-1/+1
2023-02-03blk-wbt: pass a gendisk to wbt_{enable,disable}_defaultChristoph Hellwig1-1/+1
2023-01-29block: save user max_sectors limitKeith Busch1-6/+15
2022-11-30block: untangle request_queue refcounting from sysfsChristoph Hellwig1-63/+23
2022-11-30block: fix error unwinding in blk_register_queueChristoph Hellwig1-12/+16
2022-11-30block: factor out a blk_debugfs_remove helperChristoph Hellwig1-7/+14
2022-11-30blk-crypto: pass a gendisk to blk_crypto_sysfs_{,un}registerChristoph Hellwig1-2/+2
2022-11-02blk-mq: move the srcu_struct used for quiescing to the tagsetChristoph Hellwig1-7/+2
2022-10-23blk-wbt: don't show valid wbt_lat_usec in sysfs while wbt is disabledYu Kuai1-0/+3
2022-09-26blk-throttle: pass a gendisk to blk_throtl_register_queueChristoph Hellwig1-1/+1
2022-08-02block: move ->bio_split to the gendiskChristoph Hellwig1-2/+0
2022-07-06block: move zone related fields to struct gendiskChristoph Hellwig1-1/+1
2022-07-06block: remove queue_max_open_zones and queue_max_active_zonesChristoph Hellwig1-2/+2
2022-07-06block: call blk_queue_free_zone_bitmaps from disk_releaseChristoph Hellwig1-2/+0
2022-06-29block: simplify disk_set_independent_access_rangesChristoph Hellwig1-1/+1
2022-06-28blk-mq: cleanup disk sysfs registrationChristoph Hellwig1-5/+4
2022-06-28block: use default groups to register the queue attributesChristoph Hellwig1-6/+6
2022-06-28block: remove a superflous queue kobject referenceChristoph Hellwig1-5/+1
2022-06-28block: simplify blktrace sysfs attribute creationChristoph Hellwig1-10/+1
2022-06-28block: simplify disk shutdownChristoph Hellwig1-5/+0
2022-06-27block: Directly use ida_alloc()/free()Bo Liu1-1/+1
2022-06-27block: export dma_alignment attributeKeith Busch1-0/+7
2022-06-17block: remove per-disk debugfs files in blk_unregister_queueChristoph Hellwig1-8/+8
2022-06-17block: serialize all debugfs operations using q->debugfs_mutexChristoph Hellwig1-11/+9
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-2/+1
2022-03-08block: move blk_exit_queue into disk_releaseMing Lei1-16/+0
2022-03-08block: move q_usage_counter release into blk_queue_releaseMing Lei1-0/+2
2022-03-08block: move blkcg initialization/destroy into disk allocation/release handlerMing Lei1-7/+0
2022-02-28blk-crypto: show crypto capabilities in sysfsEric Biggers1-0/+6
2022-02-28block: don't delete queue kobject before its childrenEric Biggers1-3/+5
2022-02-28block: simplify calling convention of elv_unregister_queue()Eric Biggers1-2/+1
2022-02-22scsi: block: Remove REQ_OP_WRITE_SAME supportChristoph Hellwig1-2/+1
2022-02-11block: partition include/linux/blk-cgroup.hMing Lei1-1/+1
2022-01-17block: cleanup q->srcuMing Lei1-0/+3
2022-01-17block: Remove unnecessary variable assignmentGuoYong Zheng1-1/+0
2021-12-20block: call blk_exit_queue() before freeing q->statsMing Lei1-2/+2
2021-12-03blk-mq: move srcu from blk_mq_hw_ctx to request_queueMing Lei1-1/+2
2021-11-29block: don't include blk-mq-sched.h in blk.hChristoph Hellwig1-0/+1
2021-11-29block: remove the e argument to elevator_exitChristoph Hellwig1-1/+1
2021-11-29block: remove elevator_exitChristoph Hellwig1-1/+1
2021-11-29block: only allocate poll_stats if there's a user of themJens Axboe1-1/+2
2021-11-15blk-mq: cancel blk-mq dispatch work in both blk_cleanup_queue and disk_release()Ming Lei1-10/+0
2021-10-26block: Add independent access ranges supportDamien Le Moal1-8/+18
2021-10-18block: don't allow writing to the poll queue attributeChristoph Hellwig1-19/+4
2021-10-18block: move blk-throtl fast path inlineJens Axboe1-0/+1
2021-08-23block: call blk_register_queue earlier in device_add_diskChristoph Hellwig1-9/+0
2021-08-23block: add an explicit ->disk backpointer to the request_queueChristoph Hellwig1-7/+6
2021-08-16block: unexport blk_register_queueChristoph Hellwig1-1/+0
2021-08-09block: move the bdi from the request_queue to the gendiskChristoph Hellwig1-14/+12
2021-08-09block: pass a gendisk to blk_queue_update_readaheadChristoph Hellwig1-1/+1
2021-06-16block: mark queue init done at the end of blk_register_queueMing Lei1-14/+15
2021-05-24block: remove unneeded parenthesis from blk-sysfsMax Gurtovoy1-8/+8
2021-04-06block: add sysfs entry for virt boundary maskMax Gurtovoy1-1/+8
2021-02-22block: fix potential IO hang when turning off io_pollJeffle Xu1-2/+5
2021-02-10block: introduce zone_write_granularity limitDamien Le Moal1-0/+8
2020-10-09blk-mq: move cancel of hctx->run_work to the front of blk_exit_queueYang Yang1-1/+8
2020-10-09block: get rid of unnecessary local variableYufen Yu1-3/+1
2020-10-09block: invoke blk_mq_exit_sched no matter whether have .exit_schedYufen Yu1-1/+0
2020-09-24bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flagChristoph Hellwig1-0/+3
2020-09-24block: lift setting the readahead size into the block layerChristoph Hellwig1-0/+2
2020-09-08block: make QUEUE_SYSFS_BIT_FNS more usefulChristoph Hellwig1-19/+5
2020-09-08block: add helper macros for queue sysfs entriesChristoph Hellwig1-181/+49
2020-07-15block: add max_active_zones to blk-sysfsNiklas Cassel1-1/+13
2020-07-15block: add max_open_zones to blk-sysfsNiklas Cassel1-0/+15
2020-06-24block: create the request_queue debugfs_dir on registrationLuis Chamberlain1-0/+9
2020-06-24block: revert back to synchronous request_queue removalLuis Chamberlain1-21/+22
2020-05-12block: Introduce REQ_OP_ZONE_APPENDKeith Busch1-0/+13
2019-10-07block: Remove "dying" checks from sysfs callbacksBart Van Assche1-8/+0
2019-09-27rq-qos: get rid of redundant wbt_update_limits()Yufen Yu1-1/+0
2019-09-26block: don't release queue's sysfs lock during switching elevatorMing Lei1-9/+4
2019-09-17Merge tag 'for-5.4/block-2019-09-16' of git://git.kernel.dk/linux-blockLinus Torvalds1-19/+31
2019-09-12block: fix race between switching elevator and removing queuesMing Lei1-3/+5
2019-08-27block: split .sysfs_lock into two locksMing Lei1-18/+28
2019-08-27block: add helper for checking if queue is registeredMing Lei1-2/+2
2019-08-12blk-mq: move cancel of requeue_work to the front of blk_exit_queuezhengbin1-0/+3
2019-06-06block: free sched's request pool in blk_cleanup_queueMing Lei1-1/+1
2019-05-29block: move blk_exit_queue into __blk_release_queueMing Lei1-15/+32
2019-04-22block: don't show io_timeout if driver has no timeout handlerWeiping Zhang1-2/+28
2019-03-20block: add BLK_MQ_POLL_CLASSIC for hybrid poll and return EINVAL for unexpect...Yufen Yu1-5/+7
2019-02-11block: avoid setting wbt_lat_usec to current valueAleksei Zakharov1-0/+3
2019-02-10blk-sysfs: Rework documention of __blk_release_queueMarcos Paulo de Souza1-12/+7
2018-12-28Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-4/+1
2018-12-18scsi: block: remove the cluster flagChristoph Hellwig1-4/+1
2018-12-17blk-mq: enable IO poll if .nr_queues of type poll > 0Ming Lei1-1/+2
2018-12-04block: only allow polling if a poll queue_map existsChristoph Hellwig1-1/+1
2018-11-28block: add io timeout to sysfsWeiping Zhang1-0/+27
2018-11-16block: add queue_is_mq() helperJens Axboe1-7/+7
2018-11-15block: remove the queue_lock indirectionChristoph Hellwig1-2/+2
2018-11-15block: use atomic bitops for ->queue_flagsChristoph Hellwig1-16/+12
2018-11-07block: remove dead elevator codeJens Axboe1-27/+9
2018-11-07block: remove legacy rq taggingJens Axboe1-3/+0
2018-10-31block: call rq_qos_exit() after queue is frozenMing Lei1-2/+0
2018-10-25block: Introduce blk_revalidate_disk_zones()Damien Le Moal1-0/+2
2018-10-25block: Expose queue nr_zones in sysfsDamien Le Moal1-0/+11
2018-08-23blk-wbt: don't maintain inflight counts if disabledJens Axboe1-1/+18
2018-08-11blkcg: Make blkg_root_lookup() work for queues in bypass modeBart Van Assche1-1/+1
2018-08-09block: Ensure that a request queue is dissociated from the cgroup controllerBart Van Assche1-0/+15
2018-07-09blk-rq-qos: refactor out common elements of blk-wbtJosef Bacik1-12/+10
2018-05-30block: convert bounce, q->bio_split to bioset_init()/mempool_init()Kent Overstreet1-2/+1
2018-05-24block drivers/block: Use octal not symbolic permissionsJoe Perches1-34/+34
2018-05-14block: Add sysfs entry for fua supportKent Overstreet1-0/+11
2018-03-08block: Introduce blk_queue_flag_{set,clear,test_and_{set,clear}}()Bart Van Assche1-15/+7
2018-02-28block: Fix a race between request queue removal and the block cgroup controllerBart Van Assche1-7/+0
2018-01-18block: Protect less code with sysfs_lock in blk_{un,}register_queue()Bart Van Assche1-9/+28
2018-01-15block: allow gendisk's request_queue registration to be deferredMike Snitzer1-0/+5
2018-01-15block: properly protect the 'queue' kobj in blk_unregister_queueMike Snitzer1-3/+10
2017-11-23blk-sysfs: remove NULL pointer checking in queue_wb_lat_storeweiping zhang1-4/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-08-28block: fix warning when I/O elevator is changed as request_queue is being rem...David Jeffery1-0/+2
2017-06-14block: Fix a blk_exit_rl() regressionBart Van Assche1-12/+22
2017-06-01block: Avoid that blk_exit_rl() triggers a use-after-freeBart Van Assche1-1/+1
2017-05-26blk-mq: Only register debugfs attributes for blk-mq queuesBart Van Assche1-3/+3
2017-05-04blk-mq: untangle debugfs and sysfsOmar Sandoval1-0/+2
2017-05-04blk-mq: move debugfs declarations to a separate header fileOmar Sandoval1-0/+1
2017-04-26blk-mq: Register <dev>/queue/mq after having registered <dev>/queueBart Van Assche1-3/+3
2017-04-19block: Make writeback throttling defaults consistent for SQ devicesJan Kara1-18/+1
2017-04-08block: remove the discard_zeroes_data flagChristoph Hellwig1-1/+1
2017-04-07Merge branch 'for-linus' into for-4.12/blockJens Axboe1-1/+1
2017-04-07blk-mq-sched: fix crash in switch error pathOmar Sandoval1-1/+1
2017-03-29block: fix leak of q->rq_wbOmar Sandoval1-1/+3
2017-03-29block: warn if sharing request queue across gendisksOmar Sandoval1-0/+7
2017-03-28blk-throttle: choose a small throtl_slice for SSDShaohua Li1-0/+2
2017-03-28blk-throttle: make throtl_slice tunableShaohua Li1-0/+11
2017-03-21blk-stat: convert to callback-based statistics reportingOmar Sandoval1-26/+5
2017-03-21blk-stat: use READ and WRITE instead of BLK_STAT_{READ,WRITE}Omar Sandoval1-2/+2
2017-03-02block: don't call ioc_exit_icq() with the queue lock held for blk-mqJens Axboe1-2/+0
2017-02-15block: do not allow updates through sysfs until registration completesTahsin Erdogan1-7/+12
2017-02-08block: optionally merge discontiguous discard bios into a single requestChristoph Hellwig1-0/+12
2017-02-06blk-mq-sched: (un)register elevator when (un)registering queueOmar Sandoval1-11/+10
2017-02-02blk-mq: move debugfs_remove() of disk dir to blk_release_queue()Omar Sandoval1-0/+3
2017-02-02block: Dynamically allocate and refcount backing_dev_infoJan Kara1-1/+1
2017-02-02block: Use pointer to backing_dev_info from request_queueJan Kara1-4/+4
2017-01-27block: allow specifying size for extra command dataChristoph Hellwig1-2/+5
2016-12-13Merge branch 'for-4.10/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+190
2016-12-12mm: don't cap request size based on read-ahead settingJens Axboe1-0/+1
2016-12-01block: add support for REQ_OP_WRITE_ZEROESChaitanya Kulkarni1-0/+11
2016-11-28blk-wbt: allow wbt to be enabled always through sysfsJens Axboe1-6/+16
2016-11-28blk-wbt: allow reset of default latency through sysfsJens Axboe1-7/+15
2016-11-17blk-mq: make the polling code adaptiveJens Axboe1-8/+18
2016-11-17blk-mq: implement hybrid poll mode for sync O_DIRECTJens Axboe1-0/+29
2016-11-11blk-wbt: remove stat opsJens Axboe1-22/+1
2016-11-10block: hook up writeback throttlingJens Axboe1-0/+88
2016-11-10block: add scalable completion tracking of requestsJens Axboe1-0/+26