aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
AgeCommit message (Expand)AuthorFilesLines
2019-04-29scsi: sd: Revert "Rely on the driver core for asynchronous probing"Bart Van Assche1-3/+10
2019-04-29scsi: sd: Revert "Inline sd_probe_part2()"Bart Van Assche1-43/+58
2019-04-12Merge branch '5.1/scsi-fixes' into 5.2/mergeMartin K. Petersen1-6/+16
2019-04-12block: disk_events: introduce event flagsMartin Wilck1-0/+1
2019-04-06block: remove CONFIG_LBDAFChristoph Hellwig1-32/+0
2019-03-27scsi: sd: Quiesce warning if device does not report optimal I/O sizeMartin K. Petersen1-0/+3
2019-03-27scsi: sd: Fix a race between closing an sd device and sd I/OBart Van Assche1-6/+13
2019-03-27scsi: sd: Inline sd_probe_part2()Bart Van Assche1-58/+43
2019-03-27scsi: sd: Rely on the driver core for asynchronous probingBart Van Assche1-10/+3
2019-03-09Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-234/+292
2019-02-26scsi: sd: Optimal I/O size should be a multiple of physical block sizeMartin K. Petersen1-9/+50
2019-02-12scsi: sd: fix entropy gathering for most rotational disksJames Bottomley1-3/+9
2019-02-12scsi: sd: Remove superfluous residual assignmentsBart Van Assche1-3/+0
2019-02-05scsi: block: remove req->specialChristoph Hellwig1-2/+0
2019-02-04scsi: sd: Improve sd_print_capacity()Damien Le Moal1-13/+13
2019-01-29scsi: sd: Protect against READ(6) or WRITE(6) with zero block transfer lengthBart Van Assche1-0/+4
2019-01-22scsi: sd: Rename 'SCpnt' into 'cmd'Bart Van Assche1-22/+22
2019-01-22scsi: sd: Clean up sd_setup_read_write_cmnd()Martin K. Petersen1-52/+28
2019-01-22scsi: sd: Create helper functions for read/write commandsMartin K. Petersen1-75/+92
2019-01-22scsi: sd: Simplify misaligned I/O checkMartin K. Petersen1-45/+12
2019-01-22scsi: sd: Be consistent about blocks vs. sectorsMartin K. Petersen1-86/+83
2019-01-22scsi: sd: Remove a local variableBart Van Assche1-2/+1
2019-01-08scsi: sd: Make protection lookup tables static and relocate functionsJohn Garry1-0/+62
2019-01-08scsi: sd: Fix cache_type_store()Ivan Mironov1-0/+6
2018-12-28Merge tag 'for-4.21/block-20181221' of git://git.kernel.dk/linux-blockLinus Torvalds1-47/+38
2018-12-12scsi: sd: use mempool for discard special pageJens Axboe1-4/+19
2018-11-09scsi: return blk_status_t from scsi_init_io and ->init_commandChristoph Hellwig1-47/+38
2018-10-25block: Introduce blk_revalidate_disk_zones()Damien Le Moal1-2/+0
2018-10-25block: add a report_zones methodChristoph Hellwig1-12/+1
2018-10-01Merge tag 'v4.19-rc6' into for-4.20/blockJens Axboe1-1/+5
2018-09-28block: genhd: add 'groups' argument to device_add_diskHannes Reinecke1-1/+1
2018-09-26block: Move power management code into a new source fileBart Van Assche1-0/+1
2018-09-21scsi: sd: don't crash the host on invalid commandsJohannes Thumshirn1-1/+2
2018-09-17scsi: sd: Contribute to randomness when running rotational deviceXuewei Zhang1-0/+3
2018-08-26Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-daxLinus Torvalds1-17/+4
2018-08-21sd: Convert to new IDA APIMatthew Wilcox1-17/+4
2018-08-15Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-8/+7
2018-07-30block: move dif_prepare/dif_complete functions to block layerMax Gurtovoy1-3/+5
2018-06-26scsi: sd: Remove a superfluous assignmentBart Van Assche1-1/+0
2018-06-26scsi: core: check for equality of result byte valuesJohannes Thumshirn1-7/+7
2018-04-18scsi: sd: Defer spinning up drive while SANITIZE is in progressMahesh Rajashekhara1-0/+2
2018-04-05Merge tag 'for-4.17/block-20180402' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+4
2018-03-27Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-0/+2
2018-03-19scsi: sd: Remember that READ CAPACITY(16) succeededMartin K. Petersen1-0/+2
2018-03-14Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-1/+2
2018-03-08block: Use blk_queue_flag_*() in drivers instead of queue_flag_*()Bart Van Assche1-4/+4
2018-03-06scsi: sd: Keep disk read-only when re-reading partitionJeremy Cline1-1/+2
2018-02-03Merge tag 'scsi-postmerge' of git://git.kernel.org/pub/scm/linux/kernel/git/j...Linus Torvalds1-36/+5
2018-01-31Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-3/+3
2018-01-08scsi: sd: Remove zone write lockingDamien Le Moal1-36/+5
2017-12-11scsi: core: Fix a scsi_show_rq() NULL pointer dereferenceBart Van Assche1-1/+3
2017-12-04scsi: sd: add missing KERN_CONT for disk spin-upMichał Mirosław1-3/+3
2017-11-14Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-2/+30
2017-10-17scsi: sd: change manage_start_stop to bool in sysfs interfaceweiping zhang1-1/+5
2017-10-17scsi: sd: change allow_restart to bool in sysfs interfaceweiping zhang1-1/+5
2017-10-02scsi: sd: Do not override max_sectors_kb sysfs settingMartin K. Petersen1-5/+14
2017-10-02scsi: sd: Implement blacklist option for WRITE SAME w/ UNMAPMartin K. Petersen1-4/+12
2017-09-25scsi: sd: Align maximum write same blocks to physical block sizeDamien Le Moal1-0/+20
2017-09-15scsi: sd: Remove unnecessary condition in sd_read_block_limits()Lukas Czerner1-2/+0
2017-09-07Merge branch 'fixes' into miscJames Bottomley1-0/+3
2017-08-25scsi: sd: remove duplicated setting of gd->minorsweiping zhang1-1/+0
2017-08-25scsi: sd: Remove a useless comparisonBart Van Assche1-1/+1
2017-08-25scsi: sd: Fix indentationBart Van Assche1-1/+1
2017-08-25scsi: sd: sr: Convert two assignments into warning statementsBart Van Assche1-1/+1
2017-08-16scsi: sd_zbc: Write unlock zone from sd_uninit_cmnd()Damien Le Moal1-0/+3
2017-07-06Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-44/+34
2017-07-06Merge branch 'for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/l...Linus Torvalds1-1/+52
2017-06-29sd: add support for TCG OPAL self encrypting disksChristoph Hellwig1-1/+52
2017-06-26scsi: sd: Use sysfs_match_string()Martin K. Petersen1-42/+29
2017-06-12scsi: Protect SCSI device state changes with a mutexBart Van Assche1-2/+5
2017-05-16scsi: sd: Ignore sync cache failures when not supportedDerek Basehore1-12/+28
2017-05-11scsi: sd: Write lock zone for REQ_OP_WRITE_ZEROESDamien Le Moal1-4/+15
2017-05-11scsi: sd: Unlock zone in case of error in sd_setup_write_same_cmnd()Damien Le Moal1-0/+4
2017-05-04Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-50/+77
2017-05-01Merge branch 'for-4.12/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-91/+168
2017-04-25scsi: sd: sd_zbc: Rename sd_zbc_setup_write_cmndDamien Le Moal1-3/+3
2017-04-25scsi: sd: Cleanup sd_done sense data handlingChristoph Hellwig1-10/+9
2017-04-24scsi: sd: Improve sd_completed_bytesDamien Le Moal1-24/+27
2017-04-24scsi: sd: Fix function descriptionsDamien Le Moal1-15/+14
2017-04-15Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-3/+20
2017-04-08scsi: sd: Remove LBPRZ dependency for discardsMartin K. Petersen1-19/+6
2017-04-08scsi: sd: Separate zeroout and discard command choicesMartin K. Petersen1-3/+53
2017-04-08block: remove the discard_zeroes_data flagChristoph Hellwig1-5/+0
2017-04-08sd: implement unmapping Write ZeroesChristoph Hellwig1-0/+9
2017-04-08sd: implement REQ_OP_WRITE_ZEROESChristoph Hellwig1-5/+26
2017-04-08sd: split sd_setup_discard_cmndChristoph Hellwig1-69/+84
2017-04-07scsi: sd: Fix capacity calculation with 32-bit sector_tMartin K. Petersen1-2/+18
2017-04-07scsi: sd: Consider max_xfer_blocks if opt_xfer_blocks is unusableFam Zheng1-1/+2
2017-04-06scsi: sd: Return SUCCESS in sd_eh_action() after device offlineHannes Reinecke1-1/+1
2017-04-06scsi: scsi_error: count medium access timeout only once per EH runHannes Reinecke1-1/+26
2017-03-15Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-0/+17
2017-03-08Revert "scsi, block: fix duplicate bdi name registration crashes"Jan Kara1-33/+8
2017-03-01scsi: sd: Check for unaligned partial completionDamien Le Moal1-0/+17
2017-02-23scsi: remove scsi_execute_req_flagsChristoph Hellwig1-5/+4
2017-02-22scsi: sd: improve TUR handling in sd_check_eventsChristoph Hellwig1-14/+11
2017-02-22scsi: fix memory leak of sdpk on when gd fails to allocateColin Ian King1-2/+2
2017-02-22scsi: sd: make sd_devt_release() staticWei Yongjun1-1/+1
2017-02-21Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-2/+2
2017-02-17Merge branch 'for-4.11/next' into for-4.11/linus-mergeJens Axboe1-13/+35
2017-02-02scsi, block: fix duplicate bdi name registration crashesDan Williams1-8/+33
2017-01-31ѕd: remove pointless REQ_TYPE_FS checkChristoph Hellwig1-3/+0
2017-01-27block: split scsi_request out of struct requestChristoph Hellwig1-2/+2
2017-01-26Revert "sd: remove __data_len hack for WRITE SAME"Bart Van Assche1-1/+16
2017-01-20scsi: sd: Cleaned up comment references to @sdp argument explanation.John Pittman1-2/+2
2017-01-20Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-7/+16
2017-01-17Merge remote-tracking branch 'mkp-scsi/fixes' into fixesJames Bottomley1-7/+16
2017-01-17scsi: sd: Ignore zoned field for host-managed devicesDamien Le Moal1-6/+14
2017-01-17scsi: sd: Fix wrong DPOFUA disable in sd_read_cache_typeDamien Le Moal1-1/+2
2017-01-13sd: remove __data_len hack for WRITE SAMEChristoph Hellwig1-16/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-14Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-3/+1
2016-12-09block: improve handling of the magic discard payloadChristoph Hellwig1-15/+9
2016-11-08scsi: replace custom approach to hexdump small buffersAndy Shevchenko1-3/+1
2016-10-28block: better op and flags encodingChristoph Hellwig1-2/+1
2016-10-28block: split out request-only flags into a new namespaceChristoph Hellwig1-3/+3
2016-10-18sd: Implement support for ZBC devicesHannes Reinecke1-35/+113
2016-09-15scsi: sd: Move DIF protection types to t10-pi.hChristoph Hellwig1-5/+6
2016-07-26Merge tag 'dm-4.8-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/d...Linus Torvalds1-2/+1
2016-07-26Merge branch 'for-4.8/drivers' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+1
2016-07-26Merge branch 'for-4.8/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-7/+13
2016-07-18sd: don't use the ALL_TG_PT bit for reservationsChristoph Hellwig1-2/+1
2016-06-27block: convert to device_add_disk()Dan Williams1-2/+1
2016-06-07block, drivers: add REQ_OP_FLUSH operationMike Christie1-4/+3
2016-06-07block, fs, drivers: remove REQ_OP compat defs and related codeMike Christie1-1/+1
2016-06-07drivers: use req op accessorMike Christie1-9/+16
2016-06-01sd: Fix rw_max for devices that report an optimal xfer sizeMartin K. Petersen1-4/+4
2016-05-22sd: get disk reference in sd_check_events()Hannes Reinecke1-2/+7
2016-04-12sd: switch to using blk_queue_write_cache()Jens Axboe1-4/+4
2016-04-12block: add offset in blk_add_request_payload()Ming Lin1-1/+1
2016-04-09Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/...Linus Torvalds1-38/+9
2016-04-05scsi: Do not attach VPD to devices that don't support itHannes Reinecke1-18/+1
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-1/+1
2016-03-31sd: Fix excessive capacity printing on devices with blocks bigger than 512 bytesMartin K. Petersen1-20/+8
2016-03-14sd: Fix discard granularity when LBPRZ=1Martin K. Petersen1-1/+1
2016-03-08sd: Fix discard granularity when LBPRZ=1Martin K. Petersen1-1/+1
2016-02-04Merge remote-tracking branch 'mkp-scsi/4.5/scsi-fixes' into fixesJames Bottomley1-2/+2
2016-02-04block/sd: Return -EREMOTEIO when WRITE SAME and DISCARD are disabledMartin K. Petersen1-2/+2
2016-01-26Merge remote-tracking branch 'mkp-scsi/4.5/scsi-fixes' into fixesJames Bottomley1-1/+1
2016-01-26SCSI: fix crashes in sd and sr runtime PMAlan Stern1-2/+5
2016-01-20sd: Optimal I/O size is in bytes, not sectorsMartin K. Petersen1-1/+1
2015-12-21sd: Reject optimal transfer length smaller than page sizeMartin K. Petersen1-3/+6
2015-12-03Merge branch 'mkp-fixes' into fixesJames Bottomley1-21/+48
2015-11-25block/sd: Fix device-imposed transfer length limitsMartin K. Petersen1-16/+30
2015-11-25sd: Make discard granularity match logical block size when LBPRZ=1Martin K. Petersen1-5/+18
2015-11-13Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-0/+1
2015-11-11sd: Clear PS bit before Mode Select.Gabriel Krisman Bertazi1-0/+1
2015-11-04Merge branch 'for-4.4/reservations' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+96
2015-10-21sd: implement the Persistent Reservation APIChristoph Hellwig1-0/+96
2015-10-21md, dm, scsi, nvme, libnvdimm: drop blk_integrity_unregister() at shutdownDan Williams1-1/+0
2015-09-02Merge branch 'for-4.3/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2
2015-08-12sd: Fix maximum I/O size for BLOCK_PC requestsMartin K. Petersen1-3/+3
2015-07-17block: have drivers use blk_queue_max_discard_sectors()Jens Axboe1-2/+2
2015-05-25sd: fix an error return in probe()Dan Carpenter1-1/+2
2015-05-18sd: Disable support for 256 byte/sector disksMark Hounschell1-14/+5
2015-04-16sd: Unregister integrity profileMartin K. Petersen1-0/+1
2015-04-10sd, mmc, virtio_blk, string_helpers: fix block size unitsJames Bottomley1-4/+4
2015-03-19sd: don't grab a device references from driver methodsChristoph Hellwig1-44/+11
2015-02-11Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-5/+2
2015-02-02sd: Fix max transfer length for 4k disksBrian King1-2/+4
2015-01-09scsi: use per-cpu buffer for formatting senseHannes Reinecke1-5/+2
2014-12-30sd: tweak discard heuristics to work around QEMU SCSI issueMartin K. Petersen1-2/+3
2014-11-24scsi: rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16Hannes Reinecke1-1/+1
2014-11-24scsi: remove scsi_driver owner fieldChristoph Hellwig1-1/+1
2014-11-24scsi: stop passing a gfp_mask argument down the command setup pathChristoph Hellwig1-3/+3
2014-11-12sd: disable discard_zeroes_data for UNMAPMartin K. Petersen1-4/+6
2014-11-12sd: fix up ->compat_ioctlChristoph Hellwig1-20/+8
2014-11-12scsi: split scsi_nonblockable_ioctlChristoph Hellwig1-3/+3
2014-11-12scsi: remove scsi_show_result()Hannes Reinecke1-24/+26
2014-11-12scsi: use sdev as argument for sense code printingHannes Reinecke1-4/+5
2014-11-12sd: remove scsi_print_sense() in sd_done()Hannes Reinecke1-1/+0
2014-10-18Merge branch 'for-3.18/drivers' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+3
2014-10-18Merge branch 'for-3.18/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-30/+43
2014-10-04block: disable entropy contributions for nonrot devicesMike Snitzer1-1/+3
2014-09-30sd: Honor block layer integrity handling flagsMartin K. Petersen1-30/+43
2014-09-15scsi: balance out autopm get/put calls in scsi_sysfs_add_sdev()Subhash Jadavani1-0/+2
2014-09-15sd: Avoid sending medium write commands if device is write protectedSujit Reddy Thumma1-1/+5
2014-07-25sd: fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeoutK. Y. Srinivasan1-1/+1
2014-07-25scsi: add a blacklist flag which enables VPD page inquiriesMartin K. Petersen1-0/+5
2014-07-25scsi: move the writeable field from struct scsi_device to struct scsi_cdChristoph Hellwig1-3/+0
2014-07-17sd: split sd_init_commandChristoph Hellwig1-29/+29
2014-07-17sd: retry discard commandsChristoph Hellwig1-1/+1
2014-07-17sd: retry write same commandsChristoph Hellwig1-1/+1
2014-07-17sd: don't use scsi_setup_blk_pc_cmnd for discard requestsChristoph Hellwig1-19/+31
2014-07-17sd: don't use scsi_setup_blk_pc_cmnd for write same requestsChristoph Hellwig1-16/+28
2014-07-17sd: don't use scsi_setup_blk_pc_cmnd for flush requestsChristoph Hellwig1-7/+13
2014-07-17scsi: set sc_data_direction in common codeChristoph Hellwig1-2/+0
2014-07-17scsi: restructure command initialization for TYPE_FS requestsChristoph Hellwig1-1/+1
2014-07-17sd: Limit transfer lengthMartin K. Petersen1-1/+15
2014-07-17sd: bad return code of init_sdClément Calmels1-0/+2
2014-07-17sd: notify block layer when using temporary change to cache_typeVaughan Cao1-8/+15
2014-07-17sd: use READ_16 or WRITE_16 when transfer length is greater than 0xffffAkinobu Mita1-4/+1
2014-06-30usb-storage/SCSI: Add broken_fua blacklist flagAlan Stern1-1/+4
2014-06-09Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/j...Linus Torvalds1-32/+16
2014-05-19sd: medium access timeout counter fails to resetDavid Jeffery1-2/+2
2014-05-19scsi: reintroduce scsi_driver.init_commandChristoph Hellwig1-30/+14
2014-04-16sd/skd: stuff discard page in request->completion_dataJens Axboe1-4/+3
2014-04-15block: remove struct request buffer memberJens Axboe1-6/+4
2014-04-11Merge branch 'async-scsi-resume' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+1
2014-04-10scsi: async sd resumeDan Williams1-0/+1
2014-03-27[SCSI] sd: Quiesce mode sense error messagesMartin K. Petersen1-16/+22