aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
AgeCommit message (Expand)AuthorFilesLines
10 daysblock: fix that util can be greater than 100%Yu Kuai1-10/+2
10 daysblock: support to account io_ticks preciselyYu Kuai1-1/+1
2024-05-03block: add a partscan sysfs attribute for disksChristoph Hellwig1-0/+8
2024-05-03block: add a disk_has_partscan helperChristoph Hellwig1-5/+2
2024-04-17block: Introduce zone write pluggingDamien Le Moal1-1/+2
2024-03-11Merge tag 'for-6.9/block-20240310' of git://git.kernel.dk/linuxLinus Torvalds1-6/+8
2024-03-06block: make block_class constantRicardo B. Marliere1-1/+1
2024-02-25block/genhd: port disk_scan_partitions() to fileChristian Brauner1-6/+6
2024-02-19block: pass a queue_limits argument to blk_alloc_diskChristoph Hellwig1-5/+6
2024-02-13block: pass a queue_limits argument to blk_alloc_queueChristoph Hellwig1-2/+3
2023-12-19block: add check of 'minors' and 'first_minor' in device_add_disk()Li Nan1-1/+3
2023-12-13block: Set memalloc_noio to false on device_add_disk() error pathLi Nan1-0/+1
2023-10-28block: assert that we're not holding open_mutex over blk_report_disk_deadChristian Brauner1-0/+7
2023-10-28block: Use bdev_open_by_dev() in disk_scan_partitions() and blkdev_bszset()Jan Kara1-6/+6
2023-08-21block: call into the file system for bdev_mark_deadChristoph Hellwig1-20/+24
2023-08-21block: consolidate __invalidate_device and fsync_bdevChristoph Hellwig1-2/+1
2023-06-21block: fix the exclusive open mask in disk_scan_partitionsChristoph Hellwig1-1/+1
2023-06-20block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions()Yu Kuai1-1/+2
2023-06-14block: fix blktrace debugfs entries leakageYu Kuai1-1/+4
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-4/+4
2023-06-12block: use the holder as indication for exclusive opensChristoph Hellwig1-3/+2
2023-06-05block: move more code to early-lookup.cChristoph Hellwig1-92/+0
2023-06-05block: add a mark_dead holder operationChristoph Hellwig1-0/+24
2023-06-05block: introduce holder opsChristoph Hellwig1-2/+4
2023-06-05block: delete partitions later in del_gendiskChristoph Hellwig1-5/+19
2023-06-05block: avoid repeated work in blk_mark_disk_deadChristoph Hellwig1-1/+3
2023-06-05block: consolidate the shutdown logic in blk_mark_disk_dead and del_gendiskChristoph Hellwig1-14/+12
2023-06-01block: Replace all non-returning strlcpy with strscpyAzeem Shaikh1-1/+1
2023-05-06Merge tag 'for-6.4/block-2023-05-06' of git://git.kernel.dk/linuxLinus Torvalds1-14/+5
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-13/+7
2023-04-26blk-integrity: register sysfs attributes on struct deviceThomas Weißschuh1-8/+4
2023-04-26Merge tag 'for-6.4/block-2023-04-21' of git://git.kernel.dk/linuxLinus Torvalds1-0/+3
2023-04-24block: Cleanup set_capacity()/bdev_set_nr_sectors()Damien Le Moal1-6/+1
2023-04-16block: store bdev->bd_disk->fops->submit_bio state in bdevJens Axboe1-0/+3
2023-04-06block: don't set GD_NEED_PART_SCAN if scan partition failedYu Kuai1-1/+7
2023-04-03Merge 6.3-rc5 into driver-core-nextGreg Kroah-Hartman1-1/+1
2023-03-31driver core: class: remove dev_kobj from struct classGreg Kroah-Hartman1-1/+0
2023-03-07block: fix wrong mode for blkdev_put() from disk_scan_partitions()Yu Kuai1-1/+1
2023-03-06driver core: remove CONFIG_SYSFS_DEPRECATED and CONFIG_SYSFS_DEPRECATED_V2Greg Kroah-Hartman1-12/+7
2023-03-03Merge tag 'block-6.3-2023-03-03' of git://git.kernel.dk/linuxLinus Torvalds1-9/+28
2023-02-24Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2023-02-17block: fix scan partition for exclusively open device againYu Kuai1-4/+26
2023-02-17block: Revert "block: Do not reread partition table on exclusively open device"Yu Kuai1-5/+2
2023-02-14Revert "blk-cgroup: delay blk-cgroup initialization until add_disk"Christoph Hellwig1-9/+8
2023-02-14Revert "blk-cgroup: delay calling blkcg_exit_disk until disk_release"Christoph Hellwig1-2/+2
2023-02-09blk-cgroup: delay calling blkcg_exit_disk until disk_releaseChristoph Hellwig1-2/+2
2023-02-06block: stub out and deprecated the capability attribute on the gendiskChristoph Hellwig1-3/+2
2023-02-03blk-cgroup: delay blk-cgroup initialization until add_diskChristoph Hellwig1-8/+9
2023-01-27driver core: make struct device_type.devnode() take a const *Greg Kroah-Hartman1-1/+1
2023-01-06Merge tag 'block-2023-01-06' of git://git.kernel.dk/linuxLinus Torvalds1-0/+11
2023-01-04Revert "block: remove devnode callback from struct block_device_operations"Jens Axboe1-0/+11
2022-12-16Merge tag 'driver-core-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2022-12-13Merge tag 'for-6.2/block-2022-12-08' of git://git.kernel.dk/linuxLinus Torvalds1-19/+16
2022-12-03block: remove devnode callback from struct block_device_operationsGreg Kroah-Hartman1-11/+0
2022-12-01block: Do not reread partition table on exclusively open deviceJan Kara1-2/+5
2022-11-24driver core: make struct class.dev_uevent() take a const *Greg Kroah-Hartman1-2/+2
2022-11-16block: remove delayed holder registrationChristoph Hellwig1-4/+0
2022-11-16block: clear ->slave_dir when dropping the main slave_dir referenceChristoph Hellwig1-0/+2
2022-11-02blk-mq: move the srcu_struct used for quiescing to the tagsetChristoph Hellwig1-1/+1
2022-11-02block: set the disk capacity to 0 in blk_mark_disk_deadChristoph Hellwig1-0/+5
2022-10-31block: Fix possible memory leak for rq_wb on add_disk failureChen Zhongjin1-0/+1
2022-10-31blk-mq: move queue_is_mq out of blk_mq_cancel_work_syncJinlong Chen1-1/+3
2022-10-22block: fix memory leak for elevator on add_disk failureYu Kuai1-4/+8
2022-10-10Merge branch 'for-6.1/block' into block-6.1Jens Axboe1-0/+7
2022-10-10block: fix leaking minors of hidden disksChristoph Hellwig1-0/+7
2022-10-07Merge tag 'for-6.1/block-2022-10-03' of git://git.kernel.dk/linuxLinus Torvalds1-3/+4
2022-09-26blk-throttle: pass a gendisk to blk_throtl_cancel_biosChristoph Hellwig1-1/+1
2022-09-26blk-cgroup: pass a gendisk to blkcg_init_queue and blkcg_exit_queueChristoph Hellwig1-2/+3
2022-09-20Revert "block: freeze the queue earlier in del_gendisk"Christoph Hellwig1-1/+2
2022-08-12block: Do not call blk_put_queue() if gendisk allocation failsRafael Mendonca1-3/+1
2022-08-02block: move ->bio_split to the gendiskChristoph Hellwig1-1/+7
2022-07-21block: call blk_mq_exit_queue from disk_release for never added disksChristoph Hellwig1-0/+15
2022-07-14block: remove bdevnameChristoph Hellwig1-23/+0
2022-07-06block: pass a gendisk to blk_queue_free_zone_bitmapsChristoph Hellwig1-1/+1
2022-07-06block: call blk_queue_free_zone_bitmaps from disk_releaseChristoph Hellwig1-0/+1
2022-06-28block: simplify blktrace sysfs attribute creationChristoph Hellwig1-0/+3
2022-06-28block: remove blk_cleanup_diskChristoph Hellwig1-15/+0
2022-06-28block: simplify disk shutdownChristoph Hellwig1-10/+13
2022-06-17block: freeze the queue earlier in del_gendiskChristoph Hellwig1-2/+1
2022-06-17block: disable the elevator int del_gendiskChristoph Hellwig1-28/+11
2022-05-27block, loop: support partitions without scanningChristoph Hellwig1-0/+2
2022-04-17block: remove queue_discard_alignmentChristoph Hellwig1-1/+1
2022-04-17block: use bdev_alignment_offset in disk_alignment_offset_showChristoph Hellwig1-1/+1
2022-04-01Merge tag 'for-5.18/block-2022-04-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2022-03-28block: Fix the maximum minor value is blk_alloc_ext_minor()Christophe JAILLET1-1/+1
2022-03-24Merge tag 'for-5.18/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+4
2022-03-21Merge tag 'for-5.18/block-2022-03-18' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+62
2022-03-18block: cancel all throttled bios in del_gendisk()Yu Kuai1-0/+3
2022-03-09block: add ->poll_bio to block_device_operationsMing Lei1-0/+4
2022-03-08block: move rq_qos_exit() into disk_release()Ming Lei1-2/+1
2022-03-08block: do more work in elevator_exitChristoph Hellwig1-3/+0
2022-03-08block: move blk_exit_queue into disk_releaseMing Lei1-1/+30
2022-03-08block: move blkcg initialization/destroy into disk allocation/release handlerMing Lei1-0/+9
2022-02-22block: update io_ticks when io hangZhang Wensheng1-2/+12
2022-02-17block: fix surprise removal for drivers calling blk_set_queue_dyingChristoph Hellwig1-0/+14
2022-02-16block: add a ->free_disk methodChristoph Hellwig1-0/+5
2022-02-02block: remove genhd.hChristoph Hellwig1-1/+0
2022-02-02block: deprecate autoloading based on dev_tChristoph Hellwig1-0/+6
2021-12-21block: check minor range in device_add_disk()Tetsuo Handa1-0/+2
2021-12-21block: fix error unwinding in device_add_diskChristoph Hellwig1-7/+6
2021-12-03blk-mq: move srcu from blk_mq_hw_ctx to request_queueMing Lei1-1/+1
2021-11-29block: don't include <linux/part_stat.h> in blk.hChristoph Hellwig1-0/+1
2021-11-29block: don't include blk-mq-sched.h in blk.hChristoph Hellwig1-0/+1
2021-11-29block: don't set GENHD_FL_NO_PART for hidden gendisksChristoph Hellwig1-7/+2
2021-11-29block: remove GENHD_FL_EXT_DEVTChristoph Hellwig1-3/+3
2021-11-29block: remove GENHD_FL_SUPPRESS_PARTITION_INFOChristoph Hellwig1-8/+3
2021-11-29block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PARTChristoph Hellwig1-1/+1
2021-11-29block: merge disk_scan_partitions and blkdev_reread_partChristoph Hellwig1-7/+12
2021-11-29block: remove a dead check in show_partitionChristoph Hellwig1-3/+1
2021-11-15blk-mq: cancel blk-mq dispatch work in both blk_cleanup_queue and disk_release()Ming Lei1-0/+2
2021-11-09block: add __must_check for *add_disk*() callersLuis Chamberlain1-3/+3
2021-11-09Merge tag 'for-5.16/drivers-2021-11-09' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+4
2021-11-09Merge tag 'for-5.16/block-2021-11-09' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+6
2021-11-04block: fix device_add_disk() kobject_create_and_add() error handlingLuis Chamberlain1-2/+6
2021-11-04block: update __register_blkdev() probe documentationLuis Chamberlain1-1/+4
2021-11-01Merge tag 'for-5.16/bdev-size-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+1
2021-11-01Merge tag 'for-5.16/block-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-9/+26
2021-10-26block: drain queue after disk is removed from sysfsMing Lei1-10/+12
2021-10-21block: Add invalidate_disk() helper to invalidate the gendiskXie Yongji1-0/+20
2021-10-19block: move bdev_read_only() into the headerJens Axboe1-6/+0
2021-10-18block: cache inode size in bdevJens Axboe1-0/+1
2021-10-18block: convert the rest of block to bdev_get_queuePavel Begunkov1-2/+2
2021-10-18block: cache request queue in bdevPavel Begunkov1-1/+3
2021-10-18block: drop unused includes in <linux/genhd.h>Christoph Hellwig1-0/+1
2021-10-17block: warn when putting the final reference on a registered diskChristoph Hellwig1-0/+1
2021-10-15block: keep q_usage_counter in atomic mode after del_gendiskChristoph Hellwig1-1/+2
2021-10-15block: drain file system I/O on del_gendiskChristoph Hellwig1-0/+21
2021-10-02block: genhd: fix double kfree() in __alloc_disk_node()Tetsuo Handa1-0/+1
2021-09-07block: genhd: don't call blkdev_show() with major_names_lock heldTetsuo Handa1-2/+7
2021-08-24block: refine the disk_live check in del_gendiskChristoph Hellwig1-1/+1
2021-08-24block: remove CONFIG_DEBUG_BLOCK_EXT_DEVTChristoph Hellwig1-39/+4
2021-08-24block: remove a pointless call to MINOR() in device_add_diskChristoph Hellwig1-1/+1
2021-08-23block: add error handling for device_add_disk / add_diskLuis Chamberlain1-34/+58
2021-08-23block: call blk_register_queue earlier in device_add_diskChristoph Hellwig1-2/+3
2021-08-23block: call blk_integrity_add earlier in device_add_diskChristoph Hellwig1-1/+2
2021-08-23block: create the bdi link earlier in device_add_diskChristoph Hellwig1-7/+6
2021-08-23block: call bdev_add later in device_add_diskChristoph Hellwig1-19/+17
2021-08-23block: fold register_disk into device_add_diskChristoph Hellwig1-71/+60
2021-08-23block: add a sanity check for a live disk in del_gendiskChristoph Hellwig1-1/+1
2021-08-23block: add an explicit ->disk backpointer to the request_queueChristoph Hellwig1-0/+2
2021-08-23block: hold a request_queue reference for the lifetime of struct gendiskChristoph Hellwig1-12/+7
2021-08-23block: pass a request_queue to __blk_alloc_diskChristoph Hellwig1-3/+4
2021-08-23block: remove the minors argument to __alloc_disk_nodeChristoph Hellwig1-4/+2
2021-08-23block: cleanup the lockdep handling in *alloc_diskChristoph Hellwig1-3/+5
2021-08-16block: ensure the bdi is freed after inode_detach_wbChristoph Hellwig1-1/+0
2021-08-16block: free the extended dev_t minor laterChristoph Hellwig1-2/+0
2021-08-12block: remove GENHD_FL_UPChristoph Hellwig1-4/+2
2021-08-09block: move the bdi from the request_queue to the gendiskChristoph Hellwig1-9/+14
2021-08-09block: remove support for delayed queue registrationsChristoph Hellwig1-22/+7
2021-08-09block: support delayed holder registrationChristoph Hellwig1-0/+10
2021-08-09block: look up holders by bdevChristoph Hellwig1-1/+3
2021-08-02block: export diskseq in sysfsMatteo Croce1-0/+10
2021-08-02block: export the diskseq in ueventsMatteo Croce1-0/+9
2021-08-02block: add disk sequence numberMatteo Croce1-0/+24
2021-08-02block: remove disk_name()Christoph Hellwig1-8/+9
2021-08-02block: use the %pg format specifier in show_partitionChristoph Hellwig1-4/+2
2021-08-02block: use the %pg format specifier in printk_all_partitionsChristoph Hellwig1-4/+2
2021-08-02block: reduce stack usage in diskstats_showAbd-Alrhman Masalkhi1-4/+2
2021-08-02block: remove bdputChristoph Hellwig1-2/+2
2021-08-02block: unhash the whole device inode earlierChristoph Hellwig1-6/+1
2021-07-27block: delay freeing the gendiskChristoph Hellwig1-2/+1
2021-07-01block: grab a device refcount in disk_ueventChristoph Hellwig1-2/+2
2021-06-24block: add the events* attributes to disk_attrsChristoph Hellwig1-0/+3
2021-06-24block: move the disk events code to a separate fileChristoph Hellwig1-492/+0
2021-06-01block: remove bdget_diskChristoph Hellwig1-30/+5
2021-06-01block: factor out a part_devt helperChristoph Hellwig1-8/+17
2021-06-01block: move bd_mutex to struct gendiskChristoph Hellwig1-3/+4
2021-06-01block: add blk_alloc_disk and blk_cleanup_disk APIsChristoph Hellwig1-0/+35
2021-06-01block: add a flag to make put_disk on partially initalized disks saferChristoph Hellwig1-2/+5
2021-06-01block: automatically enable GENHD_FL_EXT_DEVTChristoph Hellwig1-1/+1
2021-06-01block: move the DISK_MAX_PARTS sanity check into __device_add_diskChristoph Hellwig1-7/+6
2021-06-01block: refactor device number setup in __device_add_diskChristoph Hellwig1-60/+36
2021-05-20block: prevent block device lookups at the beginning of del_gendiskChristoph Hellwig1-10/+1
2021-04-08block: remove disk_part_iterChristoph Hellwig1-79/+13
2021-04-08block: simplify diskstats_showChristoph Hellwig1-4/+6
2021-04-08block: simplify show_partitionChristoph Hellwig1-6/+7
2021-04-08block: simplify printk_all_partitionsChristoph Hellwig1-17/+16
2021-04-08block: take bd_mutex around delete_partitions in del_gendiskChristoph Hellwig1-0/+4
2021-04-08block: refactor blk_drop_partitionsChristoph Hellwig1-10/+1
2021-04-08block: move more syncing and invalidation to delete_partitionChristoph Hellwig1-4/+1
2021-04-08block: remove invalidate_partitionChristoph Hellwig1-14/+11
2021-03-11block: Suppress uevent for hidden device when removedDaniel Wagner1-3/+1
2021-02-28block: revert "block: fix bd_size_lock use"Damien Le Moal1-3/+2
2021-02-23block: fix logging on capacity changeMing Lei1-1/+1
2021-02-23block: don't skip empty device in in disk_ueventChristoph Hellwig1-1/+1
2021-02-21Merge tag 'for-5.12/block-2021-02-17' of git://git.kernel.dk/linux-blockLinus Torvalds1-257/+49
2021-01-29block: remove typo in kernel-doc of set_disk_ro()Lukas Bulwahn1-1/+1
2021-01-28block: fix bd_size_lock useDamien Le Moal1-2/+3
2021-01-24block: use an xarray for disk->part_tblChristoph Hellwig1-151/+12
2021-01-24block: remove DISK_PITER_REVERSEChristoph Hellwig1-30/+7
2021-01-24block: add a disk_uevent helperChristoph Hellwig1-13/+14
2021-01-24blk-mq: use ->bi_bdev for I/O accountingChristoph Hellwig1-48/+0
2021-01-24block: store a block_device pointer in struct bioChristoph Hellwig1-1/+1
2021-01-24block: propagate BLKROSET on the whole device to all partitionsChristoph Hellwig1-2/+1
2021-01-24block: add a hard-readonly flag to struct gendiskChristoph Hellwig1-14/+19
2021-01-24block: remove the NULL bdev check in bdev_read_onlyChristoph Hellwig1-3/+0
2021-01-05block: fix use-after-free in disk_part_iter_nextMing Lei1-4/+7
2020-12-22block: update some copyrightsChristoph Hellwig1-0/+2
2020-12-01block: stop using bdget_disk for partition 0Christoph Hellwig1-1/+0
2020-12-01block: merge struct block_device and struct hd_structChristoph Hellwig1-64/+26