aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-03Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-12/+5
2025-09-09scsi: scsi_debug: Replace kzalloc() + copy_from_user() with memdup_user_nul()Thorsten Blum1-8/+3
2025-08-19scsi: scsi_debug: Use vcalloc() to simplify codeQianfeng Rong1-4/+2
2025-07-30scsi: scsi_debug: Make read-only arrays static constColin Ian King1-34/+57
2025-06-16scsi: Don't use %pK through printk()Thomas Weißschuh1-1/+1
2025-05-05scsi: scsi_debug: Reduce DEF_ATOMIC_WR_MAX_LENGTHJohn Garry1-1/+1
2025-04-11scsi: scsi_debug: Add ERASE for tapesKai Mäkisara1-3/+20
2025-04-11scsi: scsi_debug: Use scsi_device->type instead os sdebug_ptype where possibleKai Mäkisara1-26/+35
2025-04-11scsi: scsi_debug: Move some tape-specific commands to separate definitionsKai Mäkisara1-39/+38
2025-04-11scsi: scsi_debug: Enable different command definitions for different device t...Kai Mäkisara1-89/+115
2025-04-11scsi: scsi_debug: Fix two typos in command definitionsKai Mäkisara1-2/+2
2025-03-26Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-137/+791
2025-03-02scsi: scsi_debug: Fix uninitialized variable useArnd Bergmann1-1/+1
2025-02-24scsi: scsi_debug: Do not sleep in atomic sectionsBart Van Assche1-6/+10
2025-02-24scsi: scsi_debug: Simplify command handlingBart Van Assche1-110/+20
2025-02-24scsi: scsi_debug: Remove a reference to in_use_bmBart Van Assche1-1/+1
2025-02-24scsi: scsi_debug: Remove sdebug_device_access_infoJohn Garry1-7/+0
2025-02-23scsi: scsi_debug: Add support for partitioning the tapeKai Mäkisara1-4/+104
2025-02-23scsi: scsi_debug: Reset tape setting at device resetKai Mäkisara1-1/+20
2025-02-23scsi: scsi_debug: Add compression mode page for tapesKai Mäkisara1-0/+33
2025-02-23scsi: scsi_debug: Add read support and update locate for tapesKai Mäkisara1-5/+235
2025-02-23scsi: scsi_debug: Add write support with block lengths and 4 bytes of dataKai Mäkisara1-5/+212
2025-02-23scsi: scsi_debug: Add READ BLOCK LIMITS and modify LOAD for tapesKai Mäkisara1-6/+121
2025-02-23scsi: scsi_debug: First fixes for tapesKai Mäkisara1-6/+49
2025-02-18scsi: Switch to use hrtimer_setup()Nam Cao1-2/+2
2025-01-10scsi: scsi_debug: Constify sdebug_driver_templateJohn Garry1-6/+6
2025-01-10Merge branch '6.13/scsi-fixes' into 6.14/scsi-stagingMartin K. Petersen1-1/+1
2025-01-02scsi: scsi_debug: Skip host/bus reset settle delayBart Van Assche1-0/+1
2024-12-04scsi: Convert SCSI drivers to .sdev_configure()Bart Van Assche1-4/+5
2024-12-04scsi: Rename .slave_alloc() and .slave_destroy()Bart Van Assche1-6/+6
2024-12-04scsi: scsi_debug: Fix hrtimer support for ndelayJohn Garry1-1/+1
2024-10-30Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-6/+4
2024-10-25scsi: scsi_debug: Fix do_device_access() handling of unexpected SG copy lengthJohn Garry1-6/+4
2024-10-02move asm/unaligned.h to linux/unaligned.hAl Viro1-1/+1
2024-09-12scsi: scsi_debug: Remove a useless memset()Christophe JAILLET1-1/+0
2024-07-15Merge tag 'for-6.11/block-20240710' of git://git.kernel.dk/linuxLinus Torvalds1-134/+454
2024-06-25scsi: scsi_debug: Fix create target debugfs failureMing Lei1-1/+5
2024-06-20scsi: scsi_debug: Atomic write supportJohn Garry1-134/+454
2024-03-22Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-68/+225
2024-02-26scsi: scsi_debug: Maintain write statistics per group numberBart Van Assche1-4/+45
2024-02-26scsi: scsi_debug: Implement GET STREAM STATUSBart Van Assche1-0/+50
2024-02-26scsi: scsi_debug: Implement the IO Advice Hints Grouping mode pageBart Van Assche1-3/+58
2024-02-26scsi: scsi_debug: Allocate the MODE SENSE response from the heapBart Van Assche1-2/+7
2024-02-26scsi: scsi_debug: Rework subpage code error handlingBart Van Assche1-34/+36
2024-02-26scsi: scsi_debug: Rework page code error handlingBart Van Assche1-12/+12
2024-02-26scsi: scsi_debug: Support the block limits extension VPD pageBart Van Assche1-0/+16
2024-02-26scsi: scsi_debug: Reduce code duplicationBart Van Assche1-14/+2
2024-02-05scsi: scsi_debug: Make pseudo_lld_bus constRicardo B. Marliere1-2/+2
2023-12-19block: remove support for the host aware zone modelChristoph Hellwig1-14/+13
2023-11-08scsi: scsi_debug: Delete some bogus error checkingDan Carpenter1-7/+0
2023-11-08scsi: scsi_debug: Fix some bugs in sdebug_error_write()Dan Carpenter1-1/+1
2023-10-16scsi: scsi_debug: Add param to control sdev's allow_restartWenchao Hao1-0/+6
2023-10-16scsi: scsi_debug: Add debugfs interface to fail target resetWenchao Hao1-1/+113
2023-10-16scsi: scsi_debug: Add new error injection type: Reset LUN failedWenchao Hao1-0/+39
2023-10-16scsi: scsi_debug: Add new error injection type: Abort FailedWenchao Hao1-0/+40
2023-10-16scsi: scsi_debug: Set command result and sense data if error is injectedWenchao Hao1-0/+53
2023-10-16scsi: scsi_debug: Return failed value if error is injectedWenchao Hao1-0/+36
2023-10-16scsi: scsi_debug: Time out command if the error is injectedWenchao Hao1-0/+34
2023-10-16scsi: scsi_debug: Define grammar to remove added error injectionWenchao Hao1-0/+31
2023-10-16scsi: scsi_debug: Add interface to manage error injection for a single deviceWenchao Hao1-4/+210
2023-10-16scsi: scsi_debug: Create scsi_debug directory in the debugfs filesystemWenchao Hao1-0/+8
2023-07-05scsi: scsi_debug: Remove dead codeMaurizio Lombardi1-8/+0
2023-04-18scsi: scsi_debug: Abort commands from scsi_debug_device_reset()John Garry1-0/+22
2023-04-11scsi: scsi_debug: Fix missing error code in scsi_debug_init()Harshit Mogalapalli1-1/+3
2023-04-02Merge patch series "Fix shost command overloading issues"Martin K. Petersen1-422/+361
2023-04-02scsi: scsi_debug: Drop sdebug_queueJohn Garry1-138/+51
2023-04-02scsi: scsi_debug: Only allow sdebug_max_queue be modified when no shostsJohn Garry1-61/+6
2023-04-02scsi: scsi_debug: Use scsi_host_busy() in delay_store() and ndelay_store()John Garry1-14/+13
2023-04-02scsi: scsi_debug: Use blk_mq_tagset_busy_iter() in stop_all_queued()John Garry1-28/+17
2023-04-02scsi: scsi_debug: Use blk_mq_tagset_busy_iter() in sdebug_blk_mq_poll()John Garry1-97/+98
2023-04-02scsi: scsi_debug: Dynamically allocate sdebug_queued_cmdJohn Garry1-174/+253
2023-04-02scsi: scsi_debug: Use scsi_block_requests() to block queuesJohn Garry1-9/+9
2023-04-02scsi: scsi_debug: Protect block_unblock_all_queues() with mutexJohn Garry1-1/+17
2023-04-02scsi: scsi_debug: Change shost list lock to a mutexJohn Garry1-19/+19
2023-04-02scsi: scsi_debug: Don't iter all shosts in clear_luns_changed_on_target()John Garry1-8/+5
2023-04-02scsi: scsi_debug: Fix check for sdev queue fullJohn Garry1-1/+1
2023-03-24scsi: scsi_debug: Remove redundant driver match functionLizhe1-7/+0
2023-03-16scsi: scsi_debug: Add poll mode deferred completions to statisticsJohn Garry1-0/+7
2023-03-16scsi: scsi_debug: Get command abort feature working againJohn Garry1-9/+8
2023-03-16scsi: scsi_debug: Drop sdebug_dev_info.num_in_qJohn Garry1-47/+16
2023-03-16scsi: scsi_debug: Drop check for num_in_q exceeding queue depthJohn Garry1-9/+2
2023-03-16scsi: scsi_debug: Drop scsi_debug_host_reset() device NULL pointer checkJohn Garry1-1/+1
2023-03-16scsi: scsi_debug: Drop scsi_debug_bus_reset() NULL pointer checksJohn Garry1-18/+8
2023-03-16scsi: scsi_debug: Drop scsi_debug_target_reset() NULL pointer checksJohn Garry1-21/+10
2023-03-16scsi: scsi_debug: Drop scsi_debug_device_reset() NULL pointer checksJohn Garry1-9/+8
2023-03-16scsi: scsi_debug: Drop scsi_debug_abort() NULL pointer checksJohn Garry1-7/+7
2023-03-16scsi: scsi_debug: Stop setting devip->sdbg_host twiceJohn Garry1-1/+0
2023-03-16scsi: scsi_debug: Don't hold driver host struct pointer in host->hostdata[]John Garry1-13/+11
2022-12-30Merge branch '6.2/scsi-queue' into 6.2/scsi-fixesMartin K. Petersen1-2/+0
2022-12-14Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-4/+7
2022-12-14scsi: scsi_debug: Delete unreachable code in inquiry_vpd_b0()John Garry1-2/+0
2022-12-12Merge tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+3
2022-11-26scsi: scsi_debug: Fix possible name leak in sdebug_add_host_helper()Yang Yingliang1-1/+4
2022-11-25scsi: scsi_debug: Fix a warning in resp_report_zones()Harshit Mogalapalli1-1/+1
2022-11-25scsi: scsi_debug: Fix a warning in resp_verify()Harshit Mogalapalli1-1/+1
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld1-3/+3
2022-11-17scsi: scsi_debug: Fix a warning in resp_write_scat()Harshit Mogalapalli1-1/+1
2022-11-17scsi: scsi_debug: Fix possible UAF in sdebug_add_host_helper()Yuan Can1-1/+5
2022-11-08scsi: scsi_debug: Make the READ CAPACITY response compliant with ZBCBart Van Assche1-0/+7
2022-08-22block: Change the return type of blk_mq_map_queues() into voidBart Van Assche1-5/+2
2022-06-10scsi: scsi_debug: Fix zone transition to full conditionDamien Le Moal1-2/+20
2022-04-25scsi: scsi_debug: Add gap zone supportDamien Le Moal1-25/+104
2022-04-25scsi: scsi_debug: Rename zone type constantsDamien Le Moal1-9/+9
2022-04-25scsi: scsi_debug: Fix a typoBart Van Assche1-1/+1
2022-04-11Revert "scsi: scsi_debug: Address races following module load"Bart Van Assche1-146/+51
2022-04-06scsi: scsi_debug: Fix sdebug_blk_mq_poll() in_use_bm bitmap useDamien Le Moal1-3/+5
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-139/+349
2022-03-08scsi: scsi_debug: Fix qc_lock use in sdebug_blk_mq_poll()Damien Le Moal1-9/+7
2022-03-08scsi: scsi_debug: Silence unexpected unlock warningsDamien Le Moal1-24/+44
2022-02-02block: remove genhd.hChristoph Hellwig1-1/+0
2022-01-25scsi: scsi_debug: Add environmental reporting log subpageDouglas Gilbert1-0/+33
2022-01-25scsi: scsi_debug: Add no_rwlock parameterDouglas Gilbert1-50/+102
2022-01-25scsi: scsi_debug: Divide power on reset UNIT ATTENTIONDouglas Gilbert1-11/+19
2022-01-25scsi: scsi_debug: Refine sdebug_blk_mq_poll()Douglas Gilbert1-5/+16
2022-01-25scsi: scsi_debug: Use TASK SET FULL moreDouglas Gilbert1-13/+6
2022-01-25scsi: scsi_debug: Strengthen defer_t accessesDouglas Gilbert1-11/+11
2022-01-25scsi: scsi_debug: Address races following module loadDouglas Gilbert1-51/+146
2021-12-06scsi: scsi_debug: Fix buffer size of REPORT ZONES commandShin'ichiro Kawasaki1-1/+1
2021-11-22scsi: scsi_debug: Zero clear zones at reset write pointerShin'ichiro Kawasaki1-0/+5
2021-11-22scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select()George Kennedy1-2/+2
2021-11-18scsi: scsi_debug: Fix type in min_t to avoid stack OOBGeorge Kennedy1-15/+19
2021-11-12Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-0/+4
2021-11-05Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-9/+10
2021-11-04scsi: scsi_debug: Don't call kcalloc() if size arg is zeroGeorge Kennedy1-0/+4
2021-10-18scsi: scsi_debug: Fix out-of-bound read in resp_report_tgtpgs()Ye Bin1-3/+4
2021-10-18scsi: scsi_debug: Fix out-of-bound read in resp_readcap16()Ye Bin1-2/+2
2021-10-18block: rename REQ_HIPRI to REQ_POLLEDChristoph Hellwig1-5/+5
2021-10-16scsi: scsi_debug: Call scsi_done() directlyBart Van Assche1-4/+4
2021-09-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-52/+73
2021-08-11scsi: scsi_debug: Use scsi_cmd_to_rq() instead of scsi_cmnd.requestBart Van Assche1-6/+7
2021-07-21bus: Make remove callback return voidUwe Kleine-König1-2/+1
2021-07-20scsi: scsi_debug: Improve RDPROTECT/WRPROTECT handlingMartin K. Petersen1-23/+67
2021-07-20scsi: scsi_debug: Remove dump_sector()Martin K. Petersen1-25/+1
2021-05-31scsi: core: Kill DRIVER_SENSEHannes Reinecke1-2/+2
2021-05-31scsi: core: Introduce scsi_build_sense()Hannes Reinecke1-7/+4
2021-05-14scsi: scsi_debug: Drop if with an always false conditionUwe Kleine-König1-5/+0
2021-05-02scsi: scsi_debug: Fix cmd_per_lun, set to max_queueDouglas Gilbert1-8/+16
2021-03-04scsi: scsi_debug: Fix cmd duration calculationDouglas Gilbert1-5/+6
2021-03-04scsi: scsi_debug: Add new defer type for mq_pollDouglas Gilbert1-54/+94
2021-03-04scsi: scsi_debug: mq_poll supportKashyap Desai1-0/+130
2021-02-22Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2021-02-08scsi: scsi_debug: Fix a memory leakMaurizio Lombardi1-0/+1
2021-01-22scsi: scsi_debug: Do not set COMMAND_COMPLETEHannes Reinecke1-1/+1
2021-01-05scsi: scsi_debug: Fix memleak in scsi_debug_init()Dinghao Liu1-2/+3
2020-10-14Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-11/+72
2020-10-06scsi: scsi_debug: Support host tagsetJohn Garry1-18/+10
2020-09-15Merge branch '5.9/scsi-fixes' into 5.10/scsi-ufsMartin K. Petersen1-2/+2
2020-09-02scsi: scsi_debug: Make sdebug_build_parts() respect virtual_gbJohn Pittman1-1/+1
2020-09-02scsi: scsi_debug: Adjust num_parts to create equally sized partitionsJohn Pittman1-3/+7
2020-09-01scsi: scsi_debug: Implement lun_formatDouglas Gilbert1-7/+64
2020-08-24scsi: scsi_debug: Remove superfluous close zone in resp_open_zone()Niklas Cassel1-2/+0
2020-08-17scsi: scsi_debug: Fix scp is NULL errorsDouglas Gilbert1-0/+2
2020-07-29scsi: scsi_debug: Implement tur_ms_to_ready parameterDouglas Gilbert1-17/+93
2020-07-29scsi: scsi_debug: Fix request senseDouglas Gilbert1-35/+29
2020-07-13scsi: scsi_debug: Update documentation url and bump versionDouglas Gilbert1-3/+3
2020-07-13scsi: scsi_debug: every_nth triggered error injectionDouglas Gilbert1-130/+101
2020-07-13scsi: scsi_debug: Support hostwide tagsJohn Garry1-12/+68
2020-07-13scsi: scsi_debug: Add check for sdebug_max_queue during module initJohn Garry1-0/+6
2020-07-02scsi: scsi_debug: Fix in_use bitmap corruptionDouglas Gilbert1-3/+6
2020-05-19scsi: scsi_debug: Parser tables and code interactionDouglas Gilbert1-50/+63
2020-05-11scsi: scsi_debug: Fix an error handling bug in sdeb_zbc_model_str()Dan Carpenter1-1/+1
2020-05-07scsi: scsi_debug: Disallow zone sizes that are not powers of 2Damien Le Moal1-10/+7
2020-05-05scsi: scsi_debug: Implement ZBC host-aware emulationDamien Le Moal1-45/+103
2020-05-05scsi: scsi_debug: Add zone_size_mb module parameterDamien Le Moal1-5/+7
2020-05-05scsi: scsi_debug: Add zone_nr_conv module parameterDamien Le Moal1-1/+12
2020-05-05scsi: scsi_debug: Add zone_max_open module parameterDamien Le Moal1-3/+5
2020-05-05scsi: scsi_debug: Add ZBC module parameterDouglas Gilbert1-3/+78
2020-05-05scsi: scsi_debug: Add ZBC zone commandsDouglas Gilbert1-15/+804
2020-05-05scsi: scsi_debug: Add ZBC mode and VPD pagesDouglas Gilbert1-11/+44
2020-05-04scsi: scsi_debug: Bump to version 1.89Douglas Gilbert1-3/+3
2020-05-04scsi: scsi_debug: Re-arrange parameters alphabeticallyDouglas Gilbert1-16/+18
2020-05-04scsi: scsi_debug: Implement PRE-FETCH commandsDouglas Gilbert1-5/+70
2020-05-04scsi: scsi_debug: Improve command duration calculationDouglas Gilbert1-2/+29
2020-05-04scsi: scsi_debug: Weaken rwlock around ramdisk accessDouglas Gilbert1-29/+18
2020-05-04scsi: scsi_debug: Implement VERIFY(10), add VERIFY(16)Douglas Gilbert1-7/+94
2020-05-04scsi: scsi_debug: Add per_host_store optionDouglas Gilbert1-214/+494
2020-05-04scsi: scsi_debug: Randomize command completion timeDouglas Gilbert1-3/+39
2020-03-24block: move struct partition out of genhd.hChristoph Hellwig1-2/+3
2019-11-19scsi: scsi_debug: num_tgts must be >= 0Maurizio Lombardi1-0/+5
2019-11-08scsi: core: Fix scsi_get/set_resid() interfaceDamien Le Moal1-2/+2
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 45Thomas Gleixner1-6/+1
2019-03-09Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-134/+52
2019-02-12scsi: scsi_debug: Implement support for write protectMartin K. Petersen1-45/+31
2019-02-12scsi: scsi_debug: Use scsi_[gs]et_resid() where appropriateBart Van Assche1-4/+5
2019-02-12scsi: scsi_debug: Fix a recently introduced regressionBart Van Assche1-8/+7
2019-02-08scsi: ata: Use unsigned int for cmd's type in ioctls in scsi_host_templateNathan Chancellor1-1/+2
2019-02-05scsi: remove bidirectional command supportChristoph Hellwig1-77/+8
2019-01-29scsi: scsi_debug: fix write_same with virtual_gb problemDouglas Gilbert1-20/+21
2018-12-28Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-4/+4
2018-12-18scsi: remove the use_clustering flagChristoph Hellwig1-1/+2
2018-12-18scsi: introduce a max_segment_size host_template parametersChristoph Hellwig1-1/+1
2018-12-18scsi: flip the default on use_clusteringChristoph Hellwig1-3/+2
2018-11-07scsi: kill off the legacy IO pathJens Axboe1-2/+1
2018-08-15Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-19/+38
2018-07-30scsi: scsi_debug: add cmd abort option to every_nthDouglas Gilbert1-15/+32
2018-07-12scsi: scsi_debug: skip long delays when ndelay smallDouglas Gilbert1-4/+6
2018-06-18scsi: scsi_debug: Fix memory leak on module unloadLuis Henriques1-1/+1
2018-06-12treewide: Use array_size() in vmalloc()Kees Cook1-1/+2
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-1/+1
2018-04-18scsi: scsi_debug: IMMED related delay adjustmentsDouglas Gilbert1-9/+24