aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-13loop: use the atomic queue limits update APIChristoph Hellwig1-16/+25
2024-02-13loop: pass queue_limits to blk_mq_alloc_diskChristoph Hellwig1-4/+7
2024-02-13loop: cleanup loop_config_discardChristoph Hellwig1-19/+8
2024-02-13block: pass a queue_limits argument to blk_mq_alloc_diskChristoph Hellwig1-1/+1
2024-01-18Merge tag 'for-6.8/block-2024-01-18' of git://git.kernel.dk/linuxLinus Torvalds1-27/+25
2024-01-18loop: fix the the direct I/O support check when used on top of block devicesChristoph Hellwig1-27/+25
2024-01-11Merge tag 'for-6.8/block-2024-01-08' of git://git.kernel.dk/linuxLinus Torvalds1-3/+2
2023-12-27loop: don't abuse BLK_DEF_MAX_SECTORSChristoph Hellwig1-1/+2
2023-12-27loop: don't update discard limits from loop_set_statusChristoph Hellwig1-2/+0
2023-11-24fs: move file_start_write() into vfs_iter_write()Amir Goldstein1-2/+0
2023-08-28Merge tag 'v6.6-vfs.super' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-3/+3
2023-08-21block: simplify the disk_force_media_change interfaceChristoph Hellwig1-3/+3
2023-07-21loop: do not enforce max_loop hard limit by (new) defaultMauricio Faria de Oliveira1-2/+34
2023-07-21loop: deprecate autoloading callback loop_probe()Mauricio Faria de Oliveira1-0/+4
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-12/+10
2023-06-12block: remove the unused mode argument to ->releaseChristoph Hellwig1-1/+1
2023-06-05block: introduce holder opsChristoph Hellwig1-1/+1
2023-03-27loop: LOOP_CONFIGURE: send uevents for partitionsAlyssa Ross1-9/+9
2023-03-14loop: Fix use-after-free issuesBart Van Assche1-8/+17
2023-02-22loop: loop_set_status_from_info() check before assignmentZhong Jinghua1-4/+4
2023-02-01loop: Improve the hw_queue_depth kernel module parameter implementationBart Van Assche1-4/+10
2022-12-25treewide: Convert del_timer*() to timer_shutdown*()Steven Rostedt (Google)1-1/+1
2022-12-14loop: Fix the max_loop commandline argument treatment when it is set to 0Isaac J. Manjarres1-16/+12
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-6/+6
2022-08-24loop: Check for overflow while configuring loopSiddh Raman Pant1-0/+5
2022-06-28block: remove blk_cleanup_diskChristoph Hellwig1-1/+1
2022-06-28block: simplify disk shutdownChristoph Hellwig1-1/+0
2022-06-03Merge tag 'for-5.19/drivers-2022-06-02' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+4
2022-05-27block, loop: support partitions without scanningChristoph Hellwig1-4/+4
2022-05-26Merge tag 'mm-stable-2022-05-25' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-2/+2
2022-05-23Merge tag 'for-5.19/drivers-2022-05-22' of git://git.kernel.dk/linux-blockLinus Torvalds1-199/+167
2022-05-10loop: remove most the top-of-file boilerplate commentChristoph Hellwig1-47/+0
2022-05-10loop: add a SPDX headerChristoph Hellwig1-2/+2
2022-05-10loop: remove loop.hChristoph Hellwig1-3/+54
2022-05-09VFS: add FMODE_CAN_ODIRECT file flagNeilBrown1-2/+2
2022-05-03loop: remove a spurious clear of discard_alignmentChristoph Hellwig1-1/+0
2022-05-02blk-cgroup: replace bio_blkcg with bio_blkcg_cssChristoph Hellwig1-5/+7
2022-04-18loop: don't destroy lo->workqueue in __loop_clr_fdChristoph Hellwig1-13/+13
2022-04-18loop: remove lo_refcount and avoid lo_mutex in ->open / ->releaseChristoph Hellwig1-30/+7
2022-04-18loop: avoid loop_validate_mutex/lo_mutex in ->releaseTetsuo Handa1-25/+13
2022-04-18loop: suppress uevents while reconfiguring the deviceChristoph Hellwig1-4/+21
2022-04-18loop: implement ->free_diskChristoph Hellwig1-4/+12
2022-04-18loop: only freeze the queue in __loop_clr_fd when neededChristoph Hellwig1-3/+9
2022-04-18loop: don't freeze the queue in lo_releaseChristoph Hellwig1-7/+0
2022-04-18loop: remove the racy bd_inode->i_mapping->nrpages assertsChristoph Hellwig1-20/+0
2022-04-18loop: initialize the worker tracking fields onceChristoph Hellwig1-4/+3
2022-04-18loop: de-duplicate the idle worker freeing codeChristoph Hellwig1-38/+35
2022-04-17block: add a bdev_discard_granularity helperChristoph Hellwig1-1/+1
2022-04-17block: remove QUEUE_FLAG_DISCARDChristoph Hellwig1-8/+3
2022-04-17block: add a bdev_nonrot helperChristoph Hellwig1-1/+1
2022-04-01Merge tag 'for-5.18/drivers-2022-04-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+1
2022-03-30loop: fix ioctl calls using compat_loop_infoCarlos Llamas1-0/+1
2022-03-21Merge tag 'for-5.18/drivers-2022-03-18' of git://git.kernel.dk/linux-blockLinus Torvalds1-12/+30
2022-03-16nvme: warn about shared namespaces without CONFIG_NVME_MULTIPATHChristoph Hellwig1-0/+1
2022-02-27loop: allow user to set the queue depthChaitanya Kulkarni1-1/+20
2022-02-27loop: remove extra variable in lo_req_flushChaitanya Kulkarni1-2/+1
2022-02-27loop: remove extra variable in lo_fallocate()Chaitanya Kulkarni1-2/+1
2022-02-27loop: use sysfs_emit() in the sysfs xxx show()Chaitanya Kulkarni1-5/+5
2022-02-27loop: clean up grammar in warning messageColin Ian King1-2/+2
2022-02-11block: loop:use kstatfs.f_bsize of backing file to set discard granularityMing Lei1-1/+7
2022-02-11loop: revert "make autoclear operation asynchronous"Tetsuo Handa1-36/+29
2022-01-13loop: remove redundant initialization of pointer nodeColin Ian King1-1/+1
2022-01-12Merge tag 'for-5.17/drivers-2022-01-11' of git://git.kernel.dk/linux-blockLinus Torvalds1-56/+52
2022-01-12Merge tag 'for-5.17/block-2022-01-11' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+4
2021-12-13loop: make autoclear operation asynchronousTetsuo Handa1-29/+36
2021-11-29loop: Use pr_warn_once() for loop_control_remove() warningTetsuo Handa1-1/+1
2021-11-29loop: don't hold lo_mutex during __loop_clr_fd()Tetsuo Handa1-33/+22
2021-11-29block: remove GENHD_FL_EXT_DEVTChristoph Hellwig1-1/+0
2021-11-29block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PARTChristoph Hellwig1-4/+4
2021-11-09Merge tag 'for-5.16/drivers-2021-11-09' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+0
2021-11-04loop: Remove duplicate assignmentsluo penghao1-1/+0
2021-11-01Merge tag 'for-5.16/ki_complete-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2
2021-11-01Merge tag 'for-5.16/drivers-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-351/+33
2021-10-27loop: Use blk_validate_block_size() to validate block sizeXie Yongji1-15/+2
2021-10-25fs: get rid of the res2 iocb->ki_complete argumentJens Axboe1-2/+2
2021-10-22block: remove support for cryptoloop and the xor transferChristoph Hellwig1-350/+26
2021-10-21loop: Remove the unnecessary bdev checks and unused bdev variableXie Yongji1-6/+3
2021-10-21loop: Use invalidate_disk() helper to invalidate gendiskXie Yongji1-5/+1
2021-10-18loop: add error handling support for add_disk()Luis Chamberlain1-1/+7
2021-09-03loop: reduce the loop_ctl_mutex scopeTetsuo Handa1-26/+49
2021-08-05loop: Select I/O scheduler 'none' from inside add_disk()Bart Van Assche1-1/+2
2021-08-02loop: raise media_change eventMatteo Croce1-0/+5
2021-08-02loop: don't grab a reference to the block deviceChristoph Hellwig1-5/+0
2021-07-23loop: reintroduce global lock for safe loop_validate_file() traversalTetsuo Handa1-31/+97
2021-07-02loop: remove unused variable in loop_set_status()Tetsuo Handa1-2/+0
2021-06-30loop: rewrite loop_exit using idr_for_each_entryChristoph Hellwig1-9/+5
2021-06-30loop: split loop_lookupChristoph Hellwig1-45/+12
2021-06-30loop: don't allow deleting an unspecified loop deviceChristoph Hellwig1-0/+5
2021-06-30loop: move loop_ctl_mutex locking into loop_addChristoph Hellwig1-24/+13
2021-06-30loop: split loop_control_ioctlChristoph Hellwig1-33/+60
2021-06-30loop: don't call loop_lookup before adding a loop deviceChristoph Hellwig1-8/+1
2021-06-30loop: remove the l argument to loop_addChristoph Hellwig1-7/+5
2021-06-30loop: reduce loop_ctl_mutex coverage in loop_exitChristoph Hellwig1-2/+3
2021-06-30loop: reorder loop_exitChristoph Hellwig1-5/+2
2021-06-30Merge tag 'for-5.14/drivers-2021-06-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+1
2021-06-30Merge tag 'for-5.14/block-2021-06-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-27/+19
2021-06-29loop: charge i/o to mem and blk cgDan Schatzberg1-20/+41
2021-06-29loop: use worker per cgroup instead of kworkerDan Schatzberg1-30/+179
2021-06-24block: pass a gendisk to bdev_disk_changedChristoph Hellwig1-11/+10
2021-06-18loop: Fix missing discard support when using LOOP_CONFIGUREKristian Klausen1-0/+1
2021-06-16loop: fix order of cleaning up the queue and freeing the tagsetChristoph Hellwig1-1/+1
2021-06-12Merge tag 'block-5.13-2021-06-12' of git://git.kernel.dk/linux-blockLinus Torvalds1-18/+7
2021-06-11loop: use blk_mq_alloc_disk and blk_cleanup_diskChristoph Hellwig1-13/+6
2021-06-11block: loop: fix deadlock between open and removeChristoph Hellwig1-18/+7
2021-06-01block: move bd_mutex to struct gendiskChristoph Hellwig1-7/+7
2021-05-06include: remove pagemap.h from blkdev.hMatthew Wilcox (Oracle)1-0/+1
2021-02-28Merge tag 'block-5.12-2021-02-27' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+3
2021-02-27Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2021-02-23whack-a-mole: don't open-code iminor/imajorAl Viro1-1/+1
2021-02-22loop: fix I/O error on fsync() in detached loop devicesMauricio Faria de Oliveira1-0/+3
2021-01-26loop: scale loop device by introducing per device lockPavel Tatashin1-40/+53
2020-12-16Merge tag 'for-5.11/drivers-2020-12-14' of git://git.kernel.dk/linux-blockLinus Torvalds1-6/+2
2020-12-12block: drop dead assignments in loop_init()Lukas Bulwahn1-6/+2
2020-12-01block: remove the nr_sects field in struct hd_structChristoph Hellwig1-1/+0
2020-12-01block: simplify the block device claiming interfaceChristoph Hellwig1-7/+5
2020-12-01block: remove ->bd_containsChristoph Hellwig1-1/+1
2020-12-01block: remove i_bdevChristoph Hellwig1-5/+3
2020-12-01loop: do not call set_blocksizeChristoph Hellwig1-3/+0
2020-11-16block: remove the update_bdev parameter to set_capacity_revalidate_and_notifyChristoph Hellwig1-1/+1
2020-11-16loop: let set_capacity_revalidate_and_notify update the bdev sizeChristoph Hellwig1-6/+2
2020-11-16loop: use __register_blkdev to allocate devices on demandChristoph Hellwig1-22/+8
2020-11-16loop: use set_disk_roChristoph Hellwig1-1/+1
2020-11-12loop: Fix occasional uevent dropPetr Vorel1-1/+2
2020-09-01block: replace bd_set_size with bd_set_nr_sectorsChristoph Hellwig1-2/+2
2020-08-28Merge tag 'block-5.9-2020-08-28' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2
2020-08-26loop: Set correct device size when using LOOP_CONFIGUREMartijn Coenen1-2/+2
2020-08-24Merge tag 'io_uring-5.9-2020-08-23' of git://git.kernel.dk/linux-blockLinus Torvalds1-15/+18
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-2/+2
2020-08-17block: loop: set discard granularity and alignment for block device backed loopMing Lei1-15/+18
2020-08-11loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURELennart Poettering1-0/+2
2020-07-16block: use bd_prepare_to_claim directly in the loop driverChristoph Hellwig1-4/+3
2020-06-24loop: be paranoid on exit and prevent new additions / removalsLuis Chamberlain1-0/+4
2020-06-24blk-mq: move failure injection out of blk_mq_complete_requestChristoph Hellwig1-2/+4
2020-06-18loop: replace kill_bdev with invalidate_bdevZheng Bin1-4/+4
2020-06-11Merge tag 'block-5.8-2020-06-11' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2020-06-04loop: Fix wrong masking of status flagsMartijn Coenen1-1/+1
2020-06-02Merge tag 'vfs-5.8-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-3/+3
2020-06-02Merge tag 'for-5.8/drivers-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-157/+226
2020-06-02Merge tag 'for-5.8/block-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2020-06-02mm/writeback: replace PF_LESS_THROTTLE with PF_LOCAL_THROTTLENeilBrown1-1/+1
2020-05-29blk-mq: drain I/O when all CPUs in a hctx are offlineMing Lei1-1/+1
2020-05-24loop: remove redundant assignment to variable errorColin Ian King1-2/+0
2020-05-21loop: Add LOOP_CONFIGURE ioctlMartijn Coenen1-28/+76
2020-05-21loop: Clean up LOOP_SET_STATUS lo_flags handlingMartijn Coenen1-6/+13
2020-05-21loop: Rework lo_ioctl() __user argument castingMartijn Coenen1-6/+5
2020-05-21loop: Move loop_set_status_from_info() and friends upMartijn Coenen1-103/+103
2020-05-21loop: Factor out configuring loop from statusMartijn Coenen1-50/+67
2020-05-21loop: Remove figure_loop_size()Martijn Coenen1-9/+4
2020-05-21loop: Refactor loop_set_status() size calculationMartijn Coenen1-18/+19
2020-05-21loop: Switch to set_capacity_revalidate_and_notify()Martijn Coenen1-3/+2
2020-05-21loop: Factor out setting loop device sizeMartijn Coenen1-9/+21
2020-05-21loop: Remove sector_t truncation checksMartijn Coenen1-14/+7
2020-05-21loop: Call loop_config_discard() only after new config is appliedMartijn Coenen1-2/+2
2020-05-04fs: Remove unneeded IS_DAX() check in io_is_direct()Ira Weiny1-3/+3
2020-04-03loop: Better discard support for block devicesEvan Green1-11/+31
2020-04-03loop: Report EOPNOTSUPP properlyEvan Green1-2/+5
2020-03-10loop: Only freeze block queue when needed.Martijn Coenen1-2/+4
2020-03-10loop: Only change blocksize when needed.Martijn Coenen1-6/+6
2019-11-14block: remove (__)blkdev_reread_part as an exported APIChristoph Hellwig1-5/+8
2019-11-01loop: fix no-unmap write-zeroes request behaviorDarrick J. Wong1-8/+18
2019-10-01loop: change queue block size to match when using DIOMartijn Coenen1-0/+10
2019-09-17Merge tag 'for-5.4/block-2019-09-16' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+1
2019-08-08loop: Add LOOP_SET_DIRECT_IO to compat ioctlAlessio Balsini1-0/+1
2019-08-08loop: set PF_MEMALLOC_NOIO for the worker threadMikulas Patocka1-1/+1
2019-07-30loop: Fix mount(2) failure due to race with LOOP_SET_FDJan Kara1-7/+9
2019-06-29block: never take page references for ITER_BVECChristoph Hellwig1-12/+4
2019-05-27loop: Don't change loop device under exclusive openerJan Kara1-1/+17
2019-04-01block: loop: mark bvec as ITER_BVEC_FLAG_NO_REFMing Lei1-4/+12
2019-04-01loop: properly observe rotational flag of underlying deviceHolger Hoffstätte1-0/+19
2019-03-18loop: access lo_backing_file only when the loop device is Lo_boundDongli Zhang1-1/+1
2019-02-22loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()Dongli Zhang1-4/+17
2019-02-22loop: do not print warn message if partition scan is successfulDongli Zhang1-2/+3
2019-02-15block: kill BLK_MQ_F_SG_MERGEMing Lei1-1/+1
2019-02-15block: loop: pass multi-page bvec to iov_iterMing Lei1-10/+10
2019-01-09loop: drop caches if offset or block_size are changedJaegeuk Kim1-2/+33
2018-12-22block: loop: remove redundant codeChengguang Xu1-1/+0
2018-12-16block: loop: check error using IS_ERR instead of IS_ERR_OR_NULL in loop_add()Chengguang Xu1-1/+1
2018-12-07blkcg: remove bio->bi_css and instead use bio->bi_blkgDennis Zhou1-2/+3
2018-11-12loop: Fix double mutex_unlock(&loop_ctl_mutex) in loop_control_ioctl()Tetsuo Handa1-2/+0
2018-11-08loop: Get rid of 'nested' acquisition of loop_ctl_mutexJan Kara1-6/+6
2018-11-08loop: Avoid circular locking dependency between loop_ctl_mutex and bd_mutexJan Kara1-11/+15
2018-11-08loop: Fix deadlock when calling blkdev_reread_part()Jan Kara1-12/+16
2018-11-08loop: Move loop_reread_partitions() out of loop_ctl_mutexJan Kara1-5/+14
2018-11-08loop: Move special partition reread handling in loop_clr_fd()Jan Kara1-14/+19
2018-11-08loop: Push loop_ctl_mutex down to loop_change_fd()Jan Kara1-11/+11
2018-11-08loop: Push loop_ctl_mutex down to loop_set_fd()Jan Kara1-12/+14
2018-11-08loop: Push loop_ctl_mutex down to loop_set_status()Jan Kara1-26/+25
2018-11-08loop: Push loop_ctl_mutex down to loop_get_status()Jan Kara1-27/+10
2018-11-08loop: Push loop_ctl_mutex down into loop_clr_fd()Jan Kara1-20/+29
2018-11-08loop: Split setting of lo_state from loop_clr_fdJan Kara1-21/+31
2018-11-08loop: Push lo_ctl_mutex down into individual ioctlsJan Kara1-25/+63
2018-11-08loop: Get rid of loop_index_mutexJan Kara1-21/+20
2018-11-08loop: Fold __loop_release into loop_releaseJan Kara1-9/+7
2018-11-08block/loop: Use global lock for ioctl() operation.Tetsuo Handa1-29/+29
2018-11-08block/loop: Don't grab "struct file" for vfs_getattr() operation.Tetsuo Handa1-5/+5
2018-11-02Merge tag 'for-linus-20181102' of git://git.kernel.dk/linux-blockLinus Torvalds1-3/+2
2018-11-01Merge branch 'work.afs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-5/+4
2018-11-01blkcg: revert blkcg cleanups seriesDennis Zhou1-3/+2
2018-10-24iov_iter: Separate type from direction and use accessor functionsDavid Howells1-5/+4
2018-09-21blkcg: remove bio->bi_css and instead use bio->bi_blkgDennis Zhou (Facebook)1-2/+3