aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
AgeCommit message (Expand)AuthorFilesLines
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
2018-04-05Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/j...Linus Torvalds1-89/+152
2018-03-08block: Use blk_queue_flag_*() in drivers instead of queue_flag_*()Bart Van Assche1-1/+1
2018-02-15scsi: scsi_debug: call resp_*() function after setting host_scribbleMartin Wilck1-20/+33
2018-02-13scsi: scsi_debug: reset injection flags for every_nth > 0Martin Wilck1-1/+6
2018-02-13scsi: scsi_debug: implement IMMED bitDouglas Gilbert1-11/+65
2018-02-13scsi: scsi_debug: Fix pointer styling issuesJohn Pittman1-36/+36
2018-02-13scsi: scsi_debug: Add two new parameters to scsi_debug driverLaurence Oberman1-2/+8
2018-02-13scsi: scsi_debug: Simplify request tag decodingBart Van Assche1-26/+11
2018-01-17scsi: scsi_debug: delay stress fixDouglas Gilbert1-26/+46
2018-01-10scsi: scsi_debug: add resp_write_scat functionDouglas Gilbert1-3/+176
2018-01-10scsi: scsi_debug: ARRAY_SIZE and FF_MEDIA_IODouglas Gilbert1-73/+90
2018-01-10scsi: scsi_debug: do_device_access add sg offset argumentDouglas Gilbert1-7/+8
2018-01-10scsi: scsi_debug: fix group_number maskDouglas Gilbert1-14/+14
2018-01-10scsi: scsi_debug: tab, kstrto changesDouglas Gilbert1-87/+87
2017-12-07scsi: scsi_debug: Add support for injecting SCSI_MLQUEUE_HOST_BUSYBart Van Assche1-1/+13
2017-12-07scsi: scsi_debug: add cdb_len parameterDouglas Gilbert1-5/+87
2017-12-04scsi: scsi_debug: remove jiffies_to_timespecArnd Bergmann1-4/+1
2017-10-31scsi: scsi_debug: write_same: fix error reportDouglas Gilbert1-3/+3
2017-10-17scsi: scsi_debug: allow to specify inquiry vendor and modelHannes Reinecke1-8/+17
2017-09-08treewide: make "nr_cpu_ids" unsignedAlexey Dobriyan1-1/+1
2017-08-25scsi: scsi_debug: Remove a set-but-not-used variableBart Van Assche1-2/+1
2017-07-03Merge tag 'uuid-for-4.13' of git://git.infradead.org/users/hch/uuidLinus Torvalds1-5/+5
2017-06-05scsi_debug: switch to uuid_tChristoph Hellwig1-5/+5
2017-05-31scsi: scsi_debug: Avoid PI being disabled when TPGS is enabledMartin K. Petersen1-1/+1
2017-01-31scsi: scsi_debug: Add OPTIMAL TRANSFER LENGTH GRANULARITY option.Lukas Herbolt1-1/+9
2016-12-25ktime: Cleanup ktime_set() usageThomas Gleixner1-1/+1
2016-10-26scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloadedEwan D. Milne1-0/+1
2016-09-15scsi: sd: Move DIF protection types to t10-pi.hChristoph Hellwig1-20/+19
2016-09-15scsi: scsi_debug: Use struct t10_pi_tuple instead of struct sd_dif_tupleChristoph Hellwig1-7/+8
2016-07-12scsi_debug: fix sleep in invalid contextDouglas Gilbert1-27/+66
2016-05-10scsi_debug: use locally assigned naaDouglas Gilbert1-17/+18
2016-05-10scsi_debug: uuid for lu nameDouglas Gilbert1-10/+51
2016-05-10scsi_debug: vpd and mode page workDouglas Gilbert1-79/+108
2016-05-10scsi_debug: add multiple queue supportDouglas Gilbert1-256/+446
2016-05-03scsi_debug: rework resp_report_lunsDouglas Gilbert1-48/+87
2016-05-03scsi_debug: use pdt constantsDouglas Gilbert1-41/+45
2016-04-29scsi_debug: use likely hints on fast pathDouglas Gilbert1-114/+105
2016-04-29scsi_debug: re-order file scope declarationsDouglas Gilbert1-163/+151