aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
AgeCommit message (Expand)AuthorFilesLines
2020-03-30Merge tag 'for-5.7/block-2020-03-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-27/+192
2020-03-27block: move the ->devnode callback to struct block_device_operationsChristoph Hellwig1-2/+2
2020-03-25block: unexport get_gendiskChristoph Hellwig1-1/+0
2020-03-25block: unexport disk_map_sector_rcuChristoph Hellwig1-1/+0
2020-03-25block: unexport disk_get_partChristoph Hellwig1-1/+0
2020-03-25block: mark part_in_flight and part_in_flight_rw staticChristoph Hellwig1-3/+4
2020-03-25block: mark block_depr staticChristoph Hellwig1-1/+1
2020-03-25block/diskstats: replace time_in_queue with sum of request timesKonstantin Khlebnikov1-3/+10
2020-03-25block/diskstats: accumulate all per-cpu counters in one passKonstantin Khlebnikov1-32/+70
2020-03-24block: move sysfs methods shared by disks and partitions to genhd.cChristoph Hellwig1-1/+79
2020-03-24block: move disk_name and related helpers out of partition-generic.cChristoph Hellwig1-0/+21
2020-03-24block: remove the blk_lookup_devt exportChristoph Hellwig1-1/+0
2020-03-18block/genhd: Notify udev about capacity changeBalbir Singh1-0/+24
2020-03-12block: Fix partition support for host aware zoned block devicesShin'ichiro Kawasaki1-0/+36
2019-11-21block: add iostat counters for flush requestsKonstantin Khlebnikov1-2/+6
2019-09-05block: Delay default elevator initializationDamien Le Moal1-0/+9
2019-07-16block: fix sysfs module parameters directory path in commentAkinobu Mita1-1/+1
2019-06-15block: genhd: Use struct_size() helperGustavo A. R. Silva1-3/+2
2019-05-31block: Convert blk_invalidate_devt() header into a non-kernel-doc headerBart Van Assche1-2/+2
2019-04-30block: add SPDX tags to block layer files missing licensing informationChristoph Hellwig1-0/+1
2019-04-22block: fix use-after-free on gendiskYufen Yu1-0/+19
2019-04-12block: check_events: don't bother with events if unsupportedMartin Wilck1-11/+16
2019-04-12block: disk_events: introduce event flagsMartin Wilck1-4/+9
2019-04-12block: genhd: remove async_events fieldMartin Wilck1-6/+4
2019-02-28block: Replace function name in string with __func__Keyur Patel1-4/+4
2019-02-28block: fix NULL pointer dereference in register_diskzhengbin1-4/+6
2018-12-10block: return just one value from part_in_flightMikulas Patocka1-22/+12
2018-12-10block: switch to per-cpu in-flight countersMikulas Patocka1-10/+33
2018-12-10block: delete part_round_stats and switch to less precise countingMikulas Patocka1-3/+0
2018-12-10block: stop passing 'cpu' to all percpu stats methodsMike Snitzer1-3/+2
2018-11-16block: add queue_is_mq() helperJens Axboe1-4/+4
2018-10-01Merge tag 'v4.19-rc6' into for-4.20/blockJens Axboe1-3/+3
2018-09-28block: genhd: add 'groups' argument to device_add_diskHannes Reinecke1-5/+14
2018-09-21block: use nanosecond resolution for iostatOmar Sandoval1-3/+3
2018-07-18block: Track DISCARD statistics and output them in stat and diskstatMichael Callahan1-3/+10
2018-07-18block: Define and use STAT_READ and STAT_WRITEMichael Callahan1-8/+8
2018-06-04Merge branch 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-26/+2
2018-05-24block drivers/block: Use octal not symbolic permissionsJoe Perches1-20/+17
2018-05-16proc: introduce proc_create_seq{,_data}Christoph Hellwig1-26/+2
2018-04-26blk-mq: fix sysfs inflight counterOmar Sandoval1-0/+12
2018-03-15block, char_dev: Use correct format specifier for unsigned intsSrivatsa S. Bhat1-8/+11
2018-02-26genhd: Fix BUG in blkdev_open()Jan Kara1-1/+20
2018-02-26genhd: Add helper put_disk_and_module()Jan Kara1-4/+16
2018-02-26genhd: Rename get_disk() to get_disk_and_module()Jan Kara1-6/+4
2018-02-26genhd: Fix leaked module reference for NVME devicesJan Kara1-0/+3
2018-01-15block: allow gendisk's request_queue registration to be deferredMike Snitzer1-3/+17
2018-01-15block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDENMike Snitzer1-1/+2
2017-11-19block: genhd.c: fix message typoRandy Dunlap1-1/+1
2017-11-19block: add WARN_ON if bdi register failweiping zhang1-2/+5
2017-11-14Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-21/+49
2017-11-10block: avoid null pointer dereference on null diskColin Ian King1-1/+1
2017-11-10block: create 'slaves' and 'holders' entries for hidden gendisksHannes Reinecke1-7/+7
2017-11-03block: introduce GENHD_FL_HIDDENChristoph Hellwig1-18/+50
2017-11-03block: don't look at the struct device dev_t in disk_devtChristoph Hellwig1-4/+0
2017-10-26block, locking/lockdep: Assign a lock_class per gendisk used for wait_for_com...Byungchul Park1-8/+2
2017-09-07Merge branch 'for-4.14/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-20/+71
2017-08-23block: add a __disk_get_part helperChristoph Hellwig1-13/+13
2017-08-23block: reject attempts to allocate more than DISK_MAX_PARTS partitionsChristoph Hellwig1-0/+7
2017-08-18genhd: Annotate all part and part_tbl pointer dereferencesBart Van Assche1-5/+10
2017-08-09blk-mq: provide internal in-flight variantJens Axboe1-0/+37
2017-08-09block: make part_in_flight() take an array of two intsJens Axboe1-1/+3
2017-08-09block: pass in queue to inflight accountingJens Axboe1-2/+2
2017-07-17block: order /proc/devices by major numberLogan Gunthorpe1-5/+13
2017-06-20block: Constify disk_typeBart Van Assche1-2/+2
2017-05-02Merge tag 'docs-4.12' of git://git.lwn.net/linuxLinus Torvalds1-3/+4
2017-04-28block: hide badblocks attribute by defaultDan Williams1-0/+11
2017-04-02kernel-api.rst: fix a series of errors when parsing C filesmchehab@s-opensource.com1-3/+4
2017-03-22block: Fix oops scsi_disk_get()Jan Kara1-1/+1
2017-03-08Revert "scsi, block: fix duplicate bdi name registration crashes"Jan Kara1-21/+0
2017-03-08block: Make del_gendisk() safer for disks without queuesJan Kara1-6/+10
2017-03-02block: Move bdi_unregister() to del_gendisk()Jan Kara1-0/+5
2017-02-21block: Unhash also block device inode for the whole deviceJan Kara1-0/+1
2017-02-21block: Move bdev_unhash_inode() after invalidate_partition()Jan Kara1-2/+1
2017-02-02scsi, block: fix duplicate bdi name registration crashesDan Williams1-0/+21
2017-02-02block: Use pointer to backing_dev_info from request_queueJan Kara1-1/+1
2017-02-02block: Unhash block device inodes on gendisk destructionJan Kara1-0/+2
2016-08-04block: fix bdi vs gendisk lifetime mismatchDan Williams1-1/+1
2016-08-04block: fix use-after-free in seq fileVegard Nossum1-0/+1
2016-07-26Merge branch 'for-4.8/drivers' of git://git.kernel.dk/linux-blockLinus Torvalds1-9/+9
2016-07-07timers: Remove set_timer_slack() leftoversThomas Gleixner1-5/+0
2016-06-27block: remove ->driverfs_devDan Williams1-7/+2
2016-06-15block: introduce device_add_disk()Dan Williams1-6/+11
2016-01-19Merge branch 'for-4.5/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2016-01-09block: kill disk_{check|set|clear|alloc}_badblocksDan Williams1-42/+0
2016-01-09block: clarify badblocks lifetimeDan Williams1-5/+0
2016-01-09badblocks: rename badblocks_free to badblocks_exitDan Williams1-1/+1
2016-01-09block: Add badblock management for gendisksVishal Verma1-0/+76
2016-01-09block: fix del_gendisk() vs blkdev_ioctl crashDan Williams1-1/+0
2015-11-24block: do not initialise statics to 0 or NULLWei Tang1-1/+1
2015-10-21block: Inline blk_integrity in struct gendiskMartin K. Petersen1-0/+2
2015-07-17block: partition: convert percpu refMing Lei1-1/+5
2015-07-17block: partition: introduce hd_free_part()Ming Lei1-2/+1
2015-06-25Merge branch 'for-4.2/writeback' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+1
2015-06-11block: fix ext_dev_lock lockdep reportDan Williams1-6/+6
2015-06-02writeback: separate out include/linux/backing-dev-defs.hTejun Heo1-0/+1
2015-05-28block: discard bdi_unregister() in favour of bdi_destroy()NeilBrown1-1/+0
2014-11-19genhd: check for int overflow in disk_expand_part_tbl()Jens Axboe1-2/+9
2014-10-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds1-1/+1
2014-09-22genhd: fix leftover might_sleep() in blk_free_devt()Jens Axboe1-2/+0
2014-09-09Documentation: Docbook: Fix generated DocBook/kernel-api.xmlMasanari Iida1-1/+1
2014-09-03block: Fix dev_t minor allocation lifetimeKeith Busch1-10/+14
2013-09-11block: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)Joe Perches1-2/+1
2013-07-03block: do not pass disk names as format stringsKees Cook1-1/+1
2013-05-14block: queue work on power efficient wqViresh Kumar1-4/+8
2013-04-11driver core: handle user namespaces properly with the uid/gid devtmpfs changeGreg Kroah-Hartman1-1/+1
2013-04-08driver core: add uid and gid to devtmpfsKay Sievers1-1/+2
2013-02-27block: convert to idr_alloc()Tejun Heo1-15/+6
2013-02-27block: fix synchronization and limit check in blk_alloc_devt()Tejun Heo1-8/+5
2013-02-27block: fix ext_devt_idr handlingTomas Henzl1-1/+5
2013-02-23block/genhd.c: apply pm_runtime_set_memalloc_noio on block devicesMing Lei1-0/+10
2012-12-19block: prevent race/cleanupDerek Basehore1-15/+30
2012-12-19block: remove deadlock in disk_clear_eventsDerek Basehore1-1/+8
2012-12-17Merge branch 'for-3.8/drivers' of git://git.kernel.dk/linux-blockLinus Torvalds1-7/+1
2012-11-23block: store partition_meta_info.uuid as a stringStephen Warren1-7/+1
2012-11-10block: use NUMA_NO_NODE instead of -1Ezequiel Garcia1-1/+1
2012-10-02Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wqLinus Torvalds1-8/+6
2012-08-20workqueue: deprecate system_nrt[_freezable]_wqTejun Heo1-5/+5
2012-08-13workqueue: use mod_delayed_work() instead of cancel + queueTejun Heo1-4/+2
2012-08-03block: Don't use static to define "void *p" in show_partition_start()Jianpeng Ma1-1/+1
2012-08-01block: add partition resize function to blkpg ioctlVivek Goyal1-5/+15
2012-05-15block: fix buffer overflow when printing partition UUIDsTejun Heo1-4/+6
2012-03-02Block: use a freezable workqueue for disk-event pollingAlan Stern1-5/+5
2012-03-02block: fix __blkdev_get and add_disk race conditionStanislaw Gruszka1-13/+19
2012-01-15Merge branch 'for-3.3/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2012-01-06Merge branches 'vfsmount-guts', 'umode_t' and 'partitions' into ZAl Viro1-3/+2
2012-01-03switch device_get_devnode() and ->devnode() to umode_t *Al Viro1-1/+1
2012-01-03fs: move code out of buffer.cAl Viro1-1/+0
2012-01-03make register_disk() staticAl Viro1-1/+1
2011-12-14block: misc updates to blk_get_queue()Tejun Heo1-1/+1
2011-11-10block: Revert "[SCSI] genhd: add a new attribute "alias" in gendisk"Tejun Heo1-71/+0
2011-11-04Merge branch 'for-3.2/drivers' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2
2011-11-04Merge branch 'for-3.2/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+8
2011-10-19block: make gendisk hold a reference to its queueTejun Heo1-0/+8
2011-08-29[SCSI] genhd: add a new attribute "alias" in gendiskNao Nishijima1-0/+71
2011-08-23block: add GENHD_FL_NO_PART_SCANTejun Heo1-2/+2
2011-08-02block/genhd.c: remove useless cast in diskstats_show()Herbert Poetzl1-4/+4
2011-07-25Merge branch 'for-3.1/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-13/+15
2011-07-20block,rcu: Convert call_rcu(disk_free_ptbl_rcu_cb) to kfree_rcu()Lai Jiangshan1-9/+1
2011-07-01block: flush MEDIA_CHANGE from drivers on close(2)Tejun Heo1-10/+12
2011-07-01Merge branch 'for-linus' into for-3.1/coreJens Axboe1-34/+45
2011-06-13block:remove some spare spaces in genhd.cWanlong Gao1-3/+3
2011-06-09block: make disk_block_events() properly wait for work cancellationTejun Heo1-0/+10
2011-06-09block: remove non-syncing __disk_block_events() and fold it into disk_block_e...Tejun Heo1-31/+24
2011-06-09block: don't use non-syncing event blocking in disk_check_events()Tejun Heo1-3/+11
2011-05-26block: always allocate genhd->ev if check_events is implementedTejun Heo1-1/+1
2011-04-21block: don't propagate unlisted DISK_EVENTs to userlandTejun Heo1-2/+6
2011-03-31Fix common misspellingsLucas De Marchi1-1/+1
2011-03-09block: Don't implicitly trigger event check on disk_unblock_events()Tejun Heo1-1/+1
2011-03-04Merge branch 'for-linus' of ../linux-2.6-block into block-for-2.6.39/coreTejun Heo1-1/+1
2011-03-02block/genhd: Change some numerals into macrosLiu Yuan1-8/+8
2011-02-24Fix over-zealous flush_disk when changing device size.NeilBrown1-1/+1
2011-01-13Merge branch 'for-2.6.38/event-handling' into for-2.6.38/coreJens Axboe1-28/+516
2011-01-07block: add internal hd part table referencesJens Axboe1-1/+2
2011-01-05block: fix accounting bug on cross partition mergesJerome Marchand1-0/+1
2010-12-17fs/block: type signature of major_to_index(int) to major_to_index(unsigned)Yang Zhang1-1/+1
2010-12-17block: convert !IS_ERR(p) && p to !IS_ERR_NOR_NULL(p)Yang Zhang1-1/+1
2010-12-16implement in-kernel gendisk events handlingTejun Heo1-0/+429
2010-12-16block: move register_disk() and del_gendisk() to block/genhd.cTejun Heo1-3/+87
2010-12-16block: kill genhd_media_change_notify()Tejun Heo1-25/+0
2010-10-24Revert "block: fix accounting bug on cross partition merges"Jens Axboe1-14/+0
2010-10-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6Linus Torvalds1-5/+2
2010-10-22SYSFS: Allow boot time switching between deprecated and modern sysfs layoutAndi Kleen1-5/+2
2010-10-19block: fix accounting bug on cross partition mergesYasuaki Ishimatsu1-0/+14
2010-09-16block: Fix race during disk initializationSigned-off-by: Jan Kara1-2/+4
2010-09-15init: add support for root devices specified by partition UUIDWill Drewry1-2/+7
2010-09-15block, partition: add partition_meta_info to hd_structWill Drewry1-0/+1
2010-05-21block: remove all rcu head initializationsPaul E. McKenney1-1/+0
2010-04-15blkio: fix for modular blk-cgroup buildDivyesh Shah1-0/+1
2010-01-11block: Fix discard alignment calculation and printingMartin K. Petersen1-1/+1
2009-11-10block: Expose discard granularityMartin K. Petersen1-0/+12
2009-10-06block: Seperate read and write statistics of in_flight requests v2Nikanth Karthikesan1-1/+3
2009-10-04Revert "Seperate read and write statistics of in_flight requests"Jens Axboe1-3/+1
2009-09-19Driver-Core: extend devnode callbacks to provide permissionsKay Sievers1-4/+4
2009-09-15driver model: constify attribute groupsDavid Brownell1-1/+1
2009-09-14Seperate read and write statistics of in_flight requestsNikanth Karthikesan1-1/+3
2009-09-11Send uevents for write_protect changesHannes Reinecke1-2/+16
2009-06-15Driver Core: block: add nodename support for block drivers.Kay Sievers1-0/+10
2009-05-22block: Export I/O topology for block devices and partitionsMartin K. Petersen1-0/+11
2009-04-22block: include empty disks in /proc/diskstatsTejun Heo1-4/+8
2009-02-26block: add documentation for register_blkdev()Márton Németh1-0/+16
2009-02-18block: fix booting from partitioned md arrayNeil Brown1-0/+8
2009-01-06block: struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers1-1/+1
2008-12-29block: add one-hit cache for disk partition lookupJens Axboe1-4/+19
2008-12-03block: set disk->node_id before it's being usedCheng Renquan1-1/+1
2008-11-18block: fix boot failure with CONFIG_DEBUG_BLOCK_EXT_DEVT=y and nashZhang, Yanmin1-0/+2
2008-10-23proc: move /proc/diskstats boilerplate to block/genhd.cAlexey Dobriyan1-1/+14
2008-10-23proc: move rest of /proc/partitions code to block/genhd.cAlexey Dobriyan1-1/+21
2008-10-17block: fix current kernel-doc warningsRandy Dunlap1-1/+1
2008-10-17block: fix kernel-doc for blk_alloc_devt()Li Zefan1-1/+0
2008-10-09block: add fault injection mechanism for faking request timeoutsJens Axboe1-0/+8
2008-10-09block: fix duplicate headers for /proc/partitionsTejun Heo1-1/+1
2008-10-09block: don't test for partition size in bdget_disk() and blk_lookup_devt()Tejun Heo1-2/+2
2008-10-09block: kmalloc args reversed, small function definition fixesHarvey Harrison1-2/+2
2008-10-09block: allow disk to have extended device numberTejun Heo1-1/+24
2008-10-09block: replace @ext_minors with GENHD_FL_EXT_DEVTTejun Heo1-15/+1
2008-10-09block: make partition array dynamicTejun Heo1-20/+109
2008-10-09block: move stats from disk to part0Tejun Heo1-73/+24
2008-10-09block: kill GENHD_FL_FAIL and use part0->make_it_failTejun Heo1-29/+1
2008-10-09block: move policy from disk to part0Tejun Heo1-11/+5
2008-10-09block: unify sysfs size node handlingTejun Heo1-9/+1