aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_sbc.c
AgeCommit message (Expand)AuthorFilesLines
2023-04-11scsi: target: Rename sbc_ops to exec_cmd_opsMike Christie1-6/+7
2022-11-24scsi: target: core: Fix hard lockup when executing a compare-and-write commandMaurizio Lombardi1-6/+16
2022-10-22scsi: target: Remove the unused function transport_lba_64_ext()Jiapeng Chong1-8/+0
2022-08-04Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-99/+0
2022-07-26scsi: target: Remove XDWRITEREAD emulated supportMike Christie1-99/+0
2022-07-07scsi: target: Fix WRITE_SAME No Data Buffer crashMike Christie1-0/+6
2021-07-18scsi: target: Fix protect handling in WRITE SAME(32)Dmitry Bogdanov1-18/+17
2021-05-31scsi: target: Use standard SAM status typesHannes Reinecke1-5/+5
2021-03-09scsi: target: core: Get rid of warning in compare_and_write_do_cmp()Chaitanya Kulkarni1-2/+2
2020-11-04scsi: target: Return COMPARE AND WRITE miscompare offsetsDavid Disseldorp1-10/+26
2020-11-04scsi: target: Split out COMPARE AND WRITE memcmp into helperDavid Disseldorp1-53/+68
2020-11-04scsi: target: Rename cmd.bad_sector to cmd.sense_infoDavid Disseldorp1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner1-14/+1
2018-10-16scsi: target/core: Always call transport_complete_callback() upon failureBart Van Assche1-1/+5
2018-10-16scsi: target/core: Use sg_alloc_table() instead of open-coding itBart Van Assche1-6/+5
2018-10-16scsi: target/core: Remove the SCF_COMPARE_AND_WRITE_POST flagBart Van Assche1-6/+0
2018-07-02scsi: target: Use config_item_name() instead of open-coding itBart Van Assche1-3/+4
2018-01-12target: don't call an unmap callback if a range length is zeroAndrei Vagin1-3/+5
2017-07-13Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-44/+21
2017-07-06target: Use {get,put}_unaligned_be*() instead of open coding these functionsBart Van Assche1-44/+15
2017-07-06target: reject COMPARE_AND_WRITE if emulate_caw is not setJiang Yi1-0/+6
2017-07-03t10-pi: Move opencoded contants to common headerDmitry Monakhov1-1/+1
2017-05-11Revert "target: Fix VERIFY and WRITE VERIFY command parsing"Nicholas Bellinger1-64/+10
2017-05-04target: Fix compare_and_write_callback handling for non GOOD statusNicholas Bellinger1-1/+4
2017-05-01target: Add WRITE_VERIFY_16Bryant G. Ly1-0/+2
2017-05-01target: Use kmalloc_array() in compare_and_write_callback()Markus Elfring1-2/+2
2017-05-01target: Fix VERIFY and WRITE VERIFY command parsingBart Van Assche1-9/+62
2017-03-07target: Fix VERIFY_16 handling in sbc_parse_cdbMax Lohrmann1-2/+8
2017-02-09target: Remove command flag CMD_T_BUSYBart Van Assche1-1/+1
2017-02-08target: Fix COMPARE_AND_WRITE ref leak for non GOOD statusNicholas Bellinger1-2/+6
2016-12-09target: Minimize #include directivesBart Van Assche1-0/+1
2016-07-20target: Fix ordered task target_setup_cmd_from_cdb exception hangNicholas Bellinger1-1/+1
2016-01-20Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-1/+9
2016-01-06target/sbc: Add LBPRZ attribute + control CDB emulationJamie Pocas1-1/+9
2015-11-28target: fix COMPARE_AND_WRITE non zero SGL offset data corruptionJan Engelhardt1-2/+2
2015-11-28target: Fix race for SCF_COMPARE_AND_WRITE_POST checkingNicholas Bellinger1-4/+9
2015-07-31target: check DPO/FUA usage for COMPARE AND WRITEDavid Disseldorp1-0/+3
2015-07-30target: add support for START_STOP_UNIT SCSI opcodeBrian Bunker1-0/+36
2015-07-06target: Use struct t10_pi_tupleSagi Grimberg1-5/+5
2015-07-04Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-156/+129
2015-06-23Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2015-06-23target: implement WRITE_SAME with UNMAP bit using ->execute_unmapChristoph Hellwig1-2/+19
2015-06-23target: simplify UNMAP handlingChristoph Hellwig1-8/+6
2015-06-23target: replace se_cmd->execute_rw with a protocol_data fieldChristoph Hellwig1-13/+7
2015-06-02target: Minimize SCSI header #include directivesBart Van Assche1-1/+1
2015-05-30target: handle odd SG mapping for data transfer memoryAkinobu Mita1-39/+83
2015-05-30target: Fix inconsistent address passed to kunmap_atomic() in sbc_dif_copy_pr...Akinobu Mita1-2/+3
2015-05-30target: fix DPO and FUA bit checksChristoph Hellwig1-2/+3
2015-05-30target/sbc: Fix sbc_dif_verify inconsistent map/unmapSagi Grimberg1-14/+14
2015-05-30target: Merge sbc_verify_dif_read|writeSagi Grimberg1-88/+6
2015-05-19target: Drop signal_pending checks after interruptible lock acquireNicholas Bellinger1-1/+1
2015-04-24Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-28/+81
2015-04-15target/sbc: Update sbc_dif_generate pr_debug outputNicholas Bellinger1-3/+5
2015-04-15target/sbc: Make internal DIF emulation honor ->prot_checksNicholas Bellinger1-0/+7
2015-04-15target/sbc: Return INVALID_CDB_FIELD if DIF + sess_prot_type disabledNicholas Bellinger1-1/+5
2015-04-14target: Fix COMPARE_AND_WRITE with SG_TO_MEM_NOALLOC handlingNicholas Bellinger1-5/+10
2015-04-07target: Add internal WRITE_STRIP supportNicholas Bellinger1-0/+3
2015-04-07target: Update SPC/SBC emulation for sess_prot_typeNicholas Bellinger1-2/+11
2015-04-07target: Add protected fabric + unprotected device supportNicholas Bellinger1-11/+33
2015-04-07target: Convert DIF emulation to use cmd->prot_typeNicholas Bellinger1-6/+7
2015-03-19target: do not reject FUA CDBs when write cache is enabled but emulate_write_...Christophe Vu-Brugier1-2/+1
2015-02-21Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-30/+110
2015-02-14target: Fail UNMAP when emulate_tpu=0Nicholas Bellinger1-0/+5
2015-02-14target: Fail WRITE_SAME w/ UNMAP=1 when emulate_tpws=0Nicholas Bellinger1-0/+5
2015-02-14target: Add sanity checks for DPO/FUA bit usageNicholas Bellinger1-10/+46
2015-02-14target: Perform PROTECT sanity checks for WRITE_SAMENicholas Bellinger1-0/+8
2015-02-14target: Fail I/O with PROTECT bit when protection is unsupportedNicholas Bellinger1-19/+32
2015-02-14target: Check for LBA + sectors wrap-around in sbc_parse_cdbNicholas Bellinger1-1/+2
2015-02-14target: Add missing WRITE_SAME end-of-device sanity checkNicholas Bellinger1-0/+12
2015-01-09target: Drop arbitrary maximum I/O size limitNicholas Bellinger1-15/+0
2014-12-18Merge remote-tracking branch 'scsi-queue/drivers-for-3.19' into for-linusJames Bottomley1-1/+1
2014-12-04scsi: remove MSG_*_TAG definesChristoph Hellwig1-1/+1
2014-11-24scsi: rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16Hannes Reinecke1-1/+1
2014-10-02target: Remove unneeded check in sbc_parse_cdbAndy Grover1-1/+1
2014-06-11TARGET/sbc,loopback: Adjust command data length in case pi exists on the wireSagi Grimberg1-2/+13
2014-06-11target: Report correct response length for some commandsRoland Dreier1-2/+2
2014-06-11target/sbc: Check that the LBA and number of blocks are correct in VERIFYChristophe Vu-Brugier1-1/+3
2014-06-11target/sbc: Remove sbc_check_valid_sectors()Christophe Vu-Brugier1-39/+6
2014-04-07target/sbc: Add sbc_dif_read_strip software emulationNicholas Bellinger1-4/+27
2014-04-07target/sbc: Add sbc_dif_generate software emulationNicholas Bellinger1-0/+44
2014-04-07target/sbc: Only expose PI read_cap16 bits when supported by fabricNicholas Bellinger1-2/+5
2014-04-07Target/sbc: Initialize COMPARE_AND_WRITE write_sg scatterlistMartin Svec1-1/+2
2014-04-07Target/sbc: add debug printSagi Grimberg1-0/+3
2014-04-07Target/core: Remove prot_handover use for nowSagi Grimberg1-1/+0
2014-04-07Target/dif: Introduce protection-passthough-only modeSagi Grimberg1-1/+1
2014-03-13Target/sbc: Set protection operation and relevant checksSagi Grimberg1-14/+73
2014-03-06Target/sbc: Fix sbc_copy_prot for offset scattersSagi Grimberg1-16/+22
2014-02-23Target/sbc: Don't use sg as iterator in sbc_verify_readSagi Grimberg1-5/+5
2014-02-23target/sbc: Fix sbc_dif_copy_prot addr offset bugNicholas Bellinger1-3/+2
2014-02-12Target/sbc: Fix protection copy routineSagi Grimberg1-0/+8
2014-01-25target: Report bad sector in sense data for DIF errorsSagi Grimberg1-0/+2
2014-01-18target/sbc: Add P_TYPE + PROT_EN bits to READ_CAPACITY_16Nicholas Bellinger1-0/+5
2014-01-18target/sbc: Add DIF TYPE1+TYPE3 read/write verify emulationNicholas Bellinger1-0/+178
2014-01-18target/sbc: Add DIF setup in sbc_check_prot + sbc_parse_cdbNicholas Bellinger1-0/+62
2014-01-09target_core_alua: Referrals infrastructureHannes Reinecke1-1/+4
2013-11-22Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-1/+11
2013-11-12target: Pass through I/O topology for block backstoresAndy Grover1-1/+11
2013-10-16target: Return an error for WRITE SAME with ANCHOR==1Roland Dreier1-0/+5
2013-10-03target: Fail on non zero scsi_status in compare_and_write_callbackNicholas Bellinger1-1/+10
2013-10-03target: Fix recursive COMPARE_AND_WRITE callback failureNicholas Bellinger1-1/+10
2013-10-03target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_sizeNicholas Bellinger1-0/+6
2013-09-10target: Update copyright ownership/year information to 2013Nicholas Bellinger1-1/+1
2013-09-10target: Release COMPARE_AND_WRITE mutex in generic failure pathNicholas Bellinger1-0/+7
2013-09-10target: Add compare_and_write_post() completion callback fall throughNicholas Bellinger1-1/+2
2013-09-10target: Add support for COMPARE_AND_WRITE emulationNicholas Bellinger1-1/+196
2013-09-09target: Allow sbc_ops->execute_rw() to accept SGLs + data_directionNicholas Bellinger1-10/+27
2013-09-09target: Add return for se_cmd->transport_complete_callbackNicholas Bellinger1-5/+8
2013-07-07target: Add (obsolete) checking for PMI/LBA fields in READ CAPACITY(10)Roland Dreier1-0/+16
2013-07-07target: Return correct sense data for IO past the end of a deviceRoland Dreier1-1/+1
2013-04-25target: Add sbc_execute_unmap() helperAsias He1-0/+85
2013-03-18target_core_sbc: use noop for SYNCHRONIZE_CACHEHannes Reinecke1-2/+5
2013-02-23target: Rename spc_get_write_same_sectors -> sbc_get_write_same_sectorsRoland Dreier1-3/+3
2013-02-13target: Fix sense data for out-of-bounds IO operationsRoland Dreier1-1/+1
2013-01-29target: Fix zero-length READ_CAPACITY_16 regressionNicholas Bellinger1-10/+8
2012-11-27target: Make spc_get_write_same_sectors return sector_tNicholas Bellinger1-1/+1
2012-11-27target: update error handling for sbc_setup_write_same()Dan Carpenter1-3/+3
2012-11-27target: Update copyright information to 2012Nicholas Bellinger1-4/+1
2012-11-15target: Add/check max_write_same_len device attribute + update block limits VPDNicholas Bellinger1-0/+7
2012-11-15target/sbc: Seperate WRITE_SAME based on UNMAP flag in sbc_opsNicholas Bellinger1-28/+23
2012-11-07target: Change sbc_emulate_noop to return sense_reason_tNicholas Bellinger1-8/+2
2012-11-06target: pass sense_reason as a return valueChristoph Hellwig1-47/+40
2012-11-06target: remove ->get_device_revChristoph Hellwig1-6/+0
2012-11-06target: provide generic sbc device type/revision helpersChristoph Hellwig1-0/+12
2012-11-06target: rename spc_opsChristoph Hellwig1-1/+1
2012-11-06target: kill struct se_subsystem_devChristoph Hellwig1-16/+15
2012-10-26target: reintroduce some obsolete SCSI-2 commandsBernhard Kohl1-0/+18
2012-09-17target: support zero allocation length in SBC commandsPaolo Bonzini1-8/+15
2012-07-16target: move unmap to struct spc_opsChristoph Hellwig1-58/+4
2012-07-16target: move write_same to struct spc_opsChristoph Hellwig1-34/+18
2012-07-16target: move sync_cache to struct spc_opsChristoph Hellwig1-14/+4
2012-07-16target: add struct spc_ops + initial ->execute_rw pointer usageChristoph Hellwig1-1/+11
2012-07-16target: move code for CDB emulationChristoph Hellwig1-19/+220
2012-07-16target: add a parse_cdb method to the backend driversChristoph Hellwig1-0/+450