aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/nbd.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-01nbd: use the atomic queue limits API in nbd_set_sizeChristoph Hellwig1-4/+11
2024-03-01nbd: freeze the queue for queue limits updatesChristoph Hellwig1-1/+13
2024-03-01nbd: don't clear discard_sectors in nbd_config_putChristoph Hellwig1-1/+2
2024-02-19nbd: pass queue_limits to blk_mq_alloc_diskChristoph Hellwig1-6/+7
2024-02-18nbd: null check for nla_nest_startNavid Emamdoost1-0/+6
2024-02-13block: pass a queue_limits argument to blk_mq_alloc_diskChristoph Hellwig1-1/+1
2024-01-17nbd: always initialize struct msghdr completelyEric Dumazet1-5/+1
2023-12-29nbd: use the default discard granularityChristoph Hellwig1-5/+1
2023-11-21nbd: pass nbd_sock to nbd_read_reply() instead of indexLi Nan1-13/+22
2023-11-20nbd: fix null-ptr-dereference while accessing 'nbd->config'Li Nan1-1/+17
2023-11-20nbd: factor out a helper to get nbd_config without holding 'config_lock'Li Nan1-8/+19
2023-11-20nbd: fold nbd config initialization into nbd_alloc_config()Li Nan1-22/+19
2023-11-07nbd: fix uaf in nbd_openLi Lingfeng1-2/+9
2023-10-03nbd: don't call blk_mark_disk_dead nbd_clear_sock_ioctlChristoph Hellwig1-1/+2
2023-08-29Merge tag 'for-6.6/block-2023-08-28' of git://git.kernel.dk/linuxLinus Torvalds1-0/+1
2023-08-21nbd: call blk_mark_disk_dead in nbd_clear_sock_ioctlChristoph Hellwig1-5/+3
2023-07-17nbd: automatically load module on genl accessThomas Weißschuh1-0/+1
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-2/+2
2023-06-12block: remove the unused mode argument to ->releaseChristoph Hellwig1-1/+1
2023-06-12block: pass a gendisk to ->openChristoph Hellwig1-4/+4
2023-06-07nbd: Add the maximum limit of allocated index in nbd_dev_addZhong Jinghua1-1/+2
2023-05-12nbd: Fix debugfs_create_dir error checkingIvan Orlov1-2/+2
2023-04-27block nbd: use req.cookie instead of req.handleEric Blake1-3/+3
2023-04-25block/drivers: remove dead clear of random flagChaitanya Kulkarni1-1/+0
2023-04-20nbd: fix incomplete validation of ioctl argZhong Jinghua1-0/+6
2023-03-14nbd: use the structured req attr checkJakub Kicinski1-4/+4
2023-03-14nbd: allow genl access outside init_netJakub Kicinski1-0/+1
2022-12-19Treewide: Stop corrupting socket's task_fragBenjamin Coddington1-0/+1
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-5/+5
2022-10-07Merge tag 'driver-core-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+0
2022-10-07Merge tag 'for-6.1/block-2022-10-03' of git://git.kernel.dk/linuxLinus Torvalds1-2/+4
2022-09-24nbd: remove define-only NBD_MAGIC, previously magic numberнаб1-2/+0
2022-09-08nbd: Fix hung when signal interrupts nbd_start_device_ioctl()Shigeru Yoshida1-2/+4
2022-08-29genetlink: start to validate reserved header bytesJakub Kicinski1-0/+1
2022-08-02nbd: add missing definition of pr_fmtYu Kuai1-2/+4
2022-07-06blk-mq: Drop 'reserved' arg of busy_tag_iter_fnJohn Garry1-1/+1
2022-07-06blk-mq: Drop blk_mq_ops.timeout 'reserved' argJohn Garry1-2/+1
2022-06-28block: remove blk_cleanup_diskChristoph Hellwig1-2/+2
2022-05-27nbd: use pr_err to output error messageYu Kuai1-22/+18
2022-05-27nbd: fix possible overflow on 'first_minor' in nbd_dev_add()Zhang Wensheng1-11/+12
2022-05-27nbd: fix io hung while disconnecting deviceYu Kuai1-1/+1
2022-05-27nbd: don't clear 'NBD_CMD_INFLIGHT' flag if request is not completedYu Kuai1-4/+14
2022-05-27nbd: fix race between nbd_alloc_config() and module removalYu Kuai1-9/+19
2022-05-27nbd: call genl_unregister_family() first in nbd_cleanup()Yu Kuai1-1/+6
2022-05-16nbd: Fix hung on disconnect request if socket is closed beforeXie Yongji1-4/+9
2022-05-03nbd: don't set the discard_alignment queue limitChristoph Hellwig1-3/+0
2022-04-18block: add a disk_openers helperChristoph Hellwig1-2/+2
2022-04-18nbd: use the correct block_device in nbd_bdev_resetChristoph Hellwig1-7/+7
2022-04-17block: remove QUEUE_FLAG_DISCARDChristoph Hellwig1-4/+1
2022-04-02Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"Jens Axboe1-12/+12
2022-03-31nbd: fix possible overflow on 'first_minor' in nbd_dev_add()Zhang Wensheng1-12/+12
2021-11-09Merge tag 'for-5.16/drivers-2021-11-09' of git://git.kernel.dk/linux-blockLinus Torvalds1-23/+21
2021-11-02nbd: error out if socket index doesn't match in nbd_handle_reply()Yu Kuai1-0/+2
2021-11-02nbd: Fix hungtask when nbd_config_putYe Bin1-20/+16
2021-11-02nbd: Fix incorrect error handle when first_minor is illegal in nbd_dev_addYe Bin1-1/+1
2021-11-02nbd: fix possible overflow for 'first_minor' in nbd_dev_add()Yu Kuai1-3/+3
2021-11-02nbd: fix max value for 'first_minor'Yu Kuai1-3/+3
2021-11-01Merge tag 'for-5.16/drivers-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-49/+112
2021-10-27nbd: Use blk_validate_block_size() to validate block sizeXie Yongji1-1/+2
2021-10-21nbd: Use invalidate_disk() helper on disconnectXie Yongji1-9/+3
2021-10-20nbd: Fix use-after-free in pid_showYe Bin1-9/+9
2021-10-18nbd: fix uaf in nbd_handle_reply()Yu Kuai1-1/+17
2021-10-18nbd: partition nbd_read_stat() into nbd_read_reply() and nbd_handle_reply()Yu Kuai1-30/+44
2021-10-18nbd: clean up return value checking of sock_xmit()Yu Kuai1-6/+7
2021-10-18nbd: don't start request if nbd_queue_rq() failedYu Kuai1-3/+0
2021-10-18nbd: check sock index in nbd_read_stat()Yu Kuai1-0/+4
2021-10-18nbd: make sure request completion won't concurrentYu Kuai1-2/+9
2021-10-18nbd: don't handle response without a corresponding request messageYu Kuai1-1/+21
2021-10-18nbd: add error handling support for add_disk()Luis Chamberlain1-1/+5
2021-09-29nbd: use shifts rather than multipliesNick Desaulniers1-12/+17
2021-08-30Merge tag 'for-5.15/drivers-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-79/+99
2021-08-25nbd: remove nbd->destroy_completeChristoph Hellwig1-38/+14
2021-08-25nbd: only return usable devices from nbd_find_unusedChristoph Hellwig1-7/+9
2021-08-25nbd: set nbd->index before releasing nbd_index_mutexTetsuo Handa1-1/+1
2021-08-25nbd: prevent IDR lookups from finding partially initialized devicesTetsuo Handa1-1/+10
2021-08-25nbd: reset NBD to NULL when restarting in nbd_genl_connectChristoph Hellwig1-14/+18
2021-08-25nbd: add missing locking to the nbd_dev_add error pathTetsuo Handa1-0/+2
2021-08-16block: nbd: add sanity check for first_minorPavel Skripkin1-0/+10
2021-08-13nbd: reduce the nbd_index_mutex scopeChristoph Hellwig1-27/+28
2021-08-13nbd: refactor device search and allocation in nbd_genl_connectChristoph Hellwig1-31/+14
2021-08-13nbd: return the allocated nbd_device from nbd_dev_addChristoph Hellwig1-12/+9
2021-08-13nbd: remove nbd_del_diskChristoph Hellwig1-12/+5
2021-08-13nbd: refactor device removalChristoph Hellwig1-24/+13
2021-08-13nbd: do del_gendisk() asynchronously for NBD_DESTROY_ON_DISCONNECTHou Tao1-9/+61
2021-08-13nbd: add the check to prevent overflow in __nbd_ioctl()Baokun Li1-2/+4
2021-08-13nbd: Aovid double completion of a requestXie Yongji1-3/+11
2021-07-15nbd: fix order of cleaning up the queue and freeing the tagsetWang Qing1-1/+1
2021-06-30nbd: provide a way for userspace processes to identify device backendsPrasanna Kumar Kalever1-1/+59
2021-06-11nbd: use blk_mq_alloc_disk and blk_cleanup_diskChristoph Hellwig1-32/+21
2021-05-12nbd: share nbd_put and return by goto put_nbdSun Ke1-4/+3
2021-05-12nbd: Fix NULL pointer in flush_workqueueSun Ke1-1/+2
2021-02-22nbd: handle device refs for DESTROY_ON_DISCONNECT properlyJosef Bacik1-13/+19
2021-02-21Merge tag 'for-5.12/drivers-2021-02-17' of git://git.kernel.dk/linux-blockLinus Torvalds1-24/+4
2021-02-10nbd: Convert to DEFINE_SHOW_ATTRIBUTELiao Pingfang1-24/+4
2021-01-25nbd: freeze the queue while we're adding connectionsJosef Bacik1-0/+8
2020-12-17nbd: Respect max_part for all partition scansJosh Triplett1-3/+6
2020-12-01block: stop using bdget_disk for partition 0Christoph Hellwig1-3/+1
2020-12-01block: remove the nr_sects field in struct hd_structChristoph Hellwig1-1/+1
2020-11-16nbd: use set_capacity_and_notifyChristoph Hellwig1-12/+3
2020-11-16nbd: validate the block size in nbd_set_sizeChristoph Hellwig1-32/+15
2020-11-16nbd: refactor size updatesChristoph Hellwig1-26/+18
2020-11-16nbd: move the task_recv check into nbd_size_updateChristoph Hellwig1-3/+7
2020-11-16nbd: remove the call to set_blocksizeChristoph Hellwig1-7/+5
2020-11-10nbd: fix a block_device refcount leak in nbd_releaseChristoph Hellwig1-0/+1
2020-10-29nbd: don't update block size after device is startedMing Lei1-4/+5
2020-10-24Merge tag 'block-5.10-2020-10-24' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2020-10-15Merge tag 'net-next-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-3/+3
2020-10-14nbd: make the config put is called before the notifying the waiterXiubo Li1-1/+1
2020-10-02genetlink: move to smaller ops wherever possibleJakub Kicinski1-3/+3
2020-09-23block: move the NEED_PART_SCAN flag to struct gendiskChristoph Hellwig1-4/+4
2020-09-02block: rename bd_invalidatedChristoph Hellwig1-4/+4
2020-09-01block: replace bd_set_size with bd_set_nr_sectorsChristoph Hellwig1-3/+4
2020-08-26nbd: restore default timeout when setting it to zeroHou Pu1-0/+2
2020-08-03Merge tag 'for-5.9/block-20200802' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+4
2020-07-08nbd: Fix memory leak in nbd_add_socketZheng Bin1-10/+15
2020-06-24blk-mq: move failure injection out of blk_mq_complete_requestChristoph Hellwig1-1/+4
2020-03-12nbd: requeue command if the soecket is changedHou Pu1-0/+10
2020-03-12nbd: enable replace socket if only one connection is configuredHou Pu1-8/+9
2020-01-29nbd: add a flush_workqueue in nbd_start_deviceSun Ke1-0/+10
2019-12-16nbd: fix shutdown and recv work deadlock v2Mike Christie1-3/+3
2019-11-25Merge tag 'for-5.5/drivers-post-20191122' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+3
2019-11-21nbd: prevent memory leakNavid Emamdoost1-2/+3
2019-11-19nbd:fix memory leak in nbd_get_socket()Sun Ke1-0/+1
2019-10-25nbd: verify socket is supported during setupMike Christie1-2/+21
2019-10-25nbd: handle racing with error'ed out commandsJosef Bacik1-0/+6
2019-10-25nbd: protect cmd->status with cmd->lockJosef Bacik1-5/+7
2019-10-10nbd: fix possible sysfs duplicate warningXiubo Li1-1/+1
2019-09-17nbd: fix possible page fault for nbd diskXiubo Li1-0/+36
2019-09-17nbd: rename the runtime flags as NBD_RT_ prefixedXiubo Li1-37/+37
2019-08-20nbd: fix max number of supported devsMike Christie1-14/+25
2019-08-20nbd: fix zero cmd timeout handling v2Mike Christie1-6/+23
2019-08-20nbd: add missing config putMike Christie1-1/+3
2019-08-20nbd: add function to convert blk req op to nbd cmdMike Christie1-15/+18
2019-08-20nbd: add set cmd timeout helperMike Christie1-14/+14
2019-07-31nbd: replace kill_bdev() with __invalidate_device() againMunehisa Kamata1-1/+1
2019-07-10nbd: add netlink reconfigure resize supportMike Christie1-16/+32
2019-07-10nbd: fix crash when the blksize is zeroXiubo Li1-3/+20
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 127Thomas Gleixner1-2/+1
2019-04-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+13
2019-04-27genetlink: optionally validate strictly/dumpsJohannes Berg1-0/+4
2019-04-27netlink: make validation more configurable for future strictnessJohannes Berg1-4/+8
2019-04-27netlink: make nla_nest_start() add NLA_F_NESTED flagMichal Kubecek1-2/+2
2019-04-26nbd: add tracepoints for send/receive timingAndrew Hall1-0/+8
2019-04-26nbd: trace sending nbd requestsMatt Mullins1-0/+5
2019-03-22genetlink: make policy common to familyJohannes Berg1-4/+1
2019-02-28nbd: propagate genlmsg_reply return codeLi RongQing1-2/+1
2019-02-15block: kill BLK_MQ_F_SG_MERGEMing Lei1-1/+1
2019-01-15nbd: Use set_blocksize() to set device blocksizeJan Kara1-2/+3
2018-11-08blk-mq-tag: change busy_iter_fn to return whether to continue or notJens Axboe1-1/+2
2018-10-24iov_iter: Separate type from direction and use accessor functionsDavid Howells1-7/+5
2018-09-04nbd: don't allow invalid blocksize settingsJens Axboe1-0/+3
2018-08-02Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-17/+79
2018-07-20nbd: constify nla_policyStephen Hemminger1-3/+3
2018-07-16nbd: handle unexpected replies betterJosef Bacik1-14/+61
2018-07-16nbd: don't requeue the same request twice.Josef Bacik1-3/+18
2018-06-20nbd: Add the nbd NBD_DISCONNECT_ON_CLOSE config flag.Doron Roberts-Kedes1-8/+34
2018-06-05nbd: set discard_alignment to the granularityJosef Bacik1-0/+3
2018-06-05nbd: Consistently use request pointer in debug messages.Kevin Vigor1-5/+5
2018-05-30blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iterChristoph Hellwig1-4/+1
2018-05-30nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs.Kevin Vigor1-6/+15
2018-05-29nbd: complete requests from ->timeoutChristoph Hellwig1-3/+4
2018-05-29block: rename BLK_EH_NOT_HANDLED to BLK_EH_DONEChristoph Hellwig1-1/+1
2018-05-24block drivers/block: Use octal not symbolic permissionsJoe Perches1-1/+1
2018-05-23nbd: set discard granularity properlyJosef Bacik1-2/+8
2018-05-22block/ndb: add WQ_UNBOUND to the knbd-recv workqueueDan Melnic1-1/+2
2018-05-16nbd: call nbd_bdev_reset instead of bd_set_size on disconnectJosef Bacik1-1/+1
2018-05-16nbd: fix how we set bd_invalidatedJosef Bacik1-4/+3
2018-05-16nbd: clear_sock on netlink disconnectJosef Bacik1-0/+1
2018-05-16nbd: use bd_set_size when updating disk sizeJosef Bacik1-1/+9
2018-05-16nbd: update size when connectedJosef Bacik1-0/+2
2018-05-16nbd: fix nbd device deletionJosef Bacik1-1/+4
2018-03-08block: Use blk_queue_flag_*() in drivers instead of queue_flag_*()Bart Van Assche1-4/+4
2018-02-27nbd: fix return value in error handling pathGustavo A. R. Silva1-1/+1
2017-11-14Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-16/+10
2017-11-06nbd: don't start req until after the dead connection logicJosef Bacik1-13/+7
2017-11-06nbd: wait uninterruptible for the dead timeoutJosef Bacik1-3/+3
2017-10-24nbd: handle interrupted sendmsg with a sndtimeo setJosef Bacik1-2/+11
2017-10-09nbd: don't set the device size until we're connectedJosef Bacik1-1/+1
2017-10-02nbd: fix -ERESTARTSYS handlingJosef Bacik1-1/+5
2017-09-25nbd: ignore non-nbd ioctl'sJosef Bacik1-0/+6
2017-08-28nbd: make device_attribute constBhumika Goyal1-1/+1
2017-08-17nbd: change the default nbd partitionsJosef Bacik1-2/+2
2017-08-17nbd: allow device creation at a specific indexJosef Bacik1-0/+9
2017-07-25nbd: clear disconnected on reconnectJosef Bacik1-0/+2
2017-07-22nbd: only set sndtimeo if we have a timeout setJosef Bacik1-2/+5
2017-07-22nbd: take tx_lock before disconnectingJosef Bacik1-0/+4
2017-07-22nbd: allow multiple disconnects to be sentJosef Bacik1-3/+2
2017-07-13nbd: kill unused ret in recv_workKefeng Wang1-2/+0
2017-07-06nbd: quiesce request queues to make sure no submissions are inflightSagi Grimberg1-2/+2
2017-06-12Merge tag 'v4.12-rc5' into for-4.13/blockJens Axboe1-10/+5
2017-06-09blk-mq: switch ->queue_rq return value to blk_status_tChristoph Hellwig1-8/+4
2017-06-09block: introduce new block status code typeChristoph Hellwig1-7/+7
2017-06-09nbd: set sk->sk_sndtimeo for our socketsJosef Bacik1-0/+2
2017-05-30nbd: add FUA op supportShaun McDowell1-3/+13
2017-05-30nbd: don't leak nbd_configIlya Dryomov1-0/+1
2017-05-30nbd: nbd_reset() call in nbd_dev_add() is redundantIlya Dryomov1-10/+4
2017-05-08treewide: convert PF_MEMALLOC manipulations to new helpersVlastimil Babka1-3/+4
2017-05-06Merge branch 'for-linus' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+3
2017-05-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-2/+2
2017-05-02blk-mq: update ->init_request and ->exit_request prototypesChristoph Hellwig1-4/+3