aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-05scsi: sr: Drop driver owner initializationKrzysztof Kozlowski1-1/+0
2024-01-29scsi: sr: Have midlayer retry get_sectorsize() errorsMike Christie1-18/+20
2023-10-13scsi: sr: Fix sshdr use in sr_get_eventsMike Christie1-1/+2
2023-06-30Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-5/+5
2023-06-12scsi: replace the fmode_t argument to scsi_ioctl with a simple boolChristoph Hellwig1-1/+1
2023-06-12block: remove the unused mode argument to ->releaseChristoph Hellwig1-1/+1
2023-06-12block: pass a gendisk to ->openChristoph Hellwig1-3/+3
2023-06-12block: pass a gendisk on bdev_check_media_changeChristoph Hellwig1-1/+1
2023-06-12cdrom: remove the unused mode argument to cdrom_releaseChristoph Hellwig1-1/+1
2023-06-12cdrom: remove the unused mode argument to cdrom_ioctlChristoph Hellwig1-1/+1
2023-06-12cdrom: remove the unused bdev argument to cdrom_openChristoph Hellwig1-1/+1
2023-05-22scsi: core: Support retrieving sub-pages of mode pagesDamien Le Moal1-1/+1
2023-04-02scsi: sr: Simplify the sr_open() functionEnze Li1-6/+1
2023-01-13scsi: sr: Convert to scsi_execute_cmd()Mike Christie1-4/+7
2022-06-28block: simplify disk shutdownChristoph Hellwig1-2/+2
2022-05-02scsi: sr: Add memory allocation failure handling for get_capabilities()Enze Li1-6/+8
2022-04-06Merge branch '5.18/scsi-queue' into 5.18/scsi-fixesMartin K. Petersen1-1/+1
2022-03-29scsi: sr: Fix typo in CDROM(CLOSETRAY|EJECT) handlingKevin Groeneveld1-1/+1
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-15/+15
2022-03-15sr: simplify the local variable initialization in sr_block_open()Lukas Bulwahn1-2/+2
2022-03-08sr: implement ->free_disk to simplify refcountingChristoph Hellwig1-98/+26
2022-03-08scsi: don't use disk->private_data to find the scsi_driverChristoph Hellwig1-3/+2
2022-03-01scsi: core: Remove struct scsi_requestChristoph Hellwig1-2/+0
2022-03-01scsi: core: Move the result field from struct scsi_request to struct scsi_cmndChristoph Hellwig1-1/+1
2022-03-01scsi: core: Remove the sense and sense_len fields from struct scsi_requestChristoph Hellwig1-1/+1
2022-03-01scsi: core: Remove the cmd field from struct scsi_requestChristoph Hellwig1-11/+13
2022-01-14Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2021-12-22scsi: sr: Don't use GFP_DMAChristoph Hellwig1-1/+1
2021-11-29scsi: remove the gendisk argument to scsi_ioctlChristoph Hellwig1-3/+2
2021-11-29block: remove the gendisk argument to blk_execute_rqChristoph Hellwig1-1/+1
2021-11-29block: remove the ->rq_disk field in struct requestChristoph Hellwig1-2/+2
2021-11-29sr: set GENHD_FL_REMOVABLE earlierChristoph Hellwig1-2/+1
2021-11-29block: remove GENHD_FL_EXT_DEVTChristoph Hellwig1-0/+1
2021-11-29block: remove GENHD_FL_CDChristoph Hellwig1-1/+0
2021-11-29block: move GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE to disk->event_flagsChristoph Hellwig1-2/+3
2021-11-12Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+0
2021-11-05Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+6
2021-10-29block: remove blk_{get,put}_requestChristoph Hellwig1-1/+1
2021-10-27scsi: sr: Remove duplicate assignmentAlexey Dobriyan1-1/+0
2021-10-22scsi: add a scsi_alloc_request helperChristoph Hellwig1-1/+1
2021-10-18scsi: sr: Add error handling support for add_disk()Luis Chamberlain1-1/+6
2021-10-18block: drop unused includes in <linux/genhd.h>Christoph Hellwig1-0/+1
2021-09-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-72/+71
2021-08-30Merge tag 'for-5.15/block-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+5
2021-08-23block: pass a request_queue to __blk_alloc_diskChristoph Hellwig1-2/+2
2021-08-23block: remove the minors argument to __alloc_disk_nodeChristoph Hellwig1-1/+2
2021-08-23block: remove alloc_disk and alloc_disk_nodeChristoph Hellwig1-1/+3
2021-08-11Merge branch '5.14/scsi-fixes' into 5.15/scsi-stagingMartin K. Petersen1-1/+1
2021-08-11scsi: sr: Use scsi_cmd_to_rq() instead of scsi_cmnd.requestBart Van Assche1-7/+6
2021-07-30scsi: sr: cdrom: Move cdrom_read_cdda_bpc() into the sr driverChristoph Hellwig1-1/+55
2021-07-29scsi: sr: Return correct event when media event code is 3Li Manyi1-1/+1
2021-07-28scsi: scsi_ioctl: Call scsi_cmd_ioctl() from scsi_ioctl()Christoph Hellwig1-14/+2
2021-07-28scsi: scsi_ioctl: Remove scsi_verify_blk_ioctl()Christoph Hellwig1-3/+3
2021-07-28scsi: scsi_ioctl: Remove scsi_cmd_blk_ioctl()Christoph Hellwig1-2/+6
2021-07-28scsi: cdrom: Remove the call to scsi_cmd_blk_ioctl() from cdrom_ioctl()Christoph Hellwig1-0/+3
2021-07-28scsi: core: Remove scsi_compat_ioctl()Christoph Hellwig1-4/+1
2021-07-28scsi: sr: Consolidate compat ioctl handlingChristoph Hellwig1-55/+9
2021-07-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-2/+2
2021-06-18scsi: sr: Return appropriate error code when disk is ejectedManYi Li1-0/+2
2021-05-31scsi: core: Drop obsolete Linux-specific SCSI status codesHannes Reinecke1-1/+1
2021-05-31scsi: core: Drop the now obsolete driver_byte definitionsHannes Reinecke1-1/+1
2021-05-31scsi: core: Fixup calling convention for scsi_mode_sense()Hannes Reinecke1-1/+1
2020-12-12sr: Remove in_interrupt() usage in sr_init_command().Sebastian Andrzej Siewior1-17/+0
2020-10-23Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-10/+7
2020-10-08scsi: sr: Initialize ->cmd_lenChristoph Hellwig1-0/+1
2020-10-07scsi: core: Clean up allocation and freeing of sgtablesChristoph Hellwig1-10/+6
2020-09-10sr: simplify sr_block_revalidate_diskChristoph Hellwig1-23/+13
2020-09-10sr: use bdev_check_media_changeChristoph Hellwig1-2/+4
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-2/+2
2020-06-13Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+6
2020-06-09scsi: sr: Fix sr_probe() missing deallocate of device minorSimon Arlott1-1/+5
2020-06-09scsi: sr: Fix sr_probe() missing mutex_destroySimon Arlott1-0/+1
2020-06-05Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-16/+10
2020-05-04block: add a cdrom_device_info pointer to struct gendiskChristoph Hellwig1-2/+1
2020-04-27scsi: sr: Use {get,put}_unaligned_be*() instead of open-coding these functionsBart Van Assche1-16/+10
2020-04-10Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+3
2020-04-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-9/+11
2020-03-31scsi: sr: Fix sr_block_release()Bart Van Assche1-1/+3
2020-02-24scsi: compat_ioctl: cdrom: Replace .ioctl with .compat_ioctl in four appropri...Adam Williamson1-1/+1
2020-02-24scsi: sr: get rid of sr global mutexMerlijn Wajer1-9/+11
2020-01-03compat_ioctl: move cdrom commands into cdrom.cArnd Bergmann1-6/+2
2020-01-03compat_ioctl: scsi: move ioctl handling into driversArnd Bergmann1-4/+53
2019-05-21treewide: Add SPDX license identifier for more missed filesThomas Gleixner1-0/+1
2019-04-12block: disk_events: introduce event flagsMartin Wilck1-0/+1
2019-02-05scsi: stop setting up request->specialChristoph Hellwig1-1/+0
2018-11-09scsi: return blk_status_t from scsi_init_io and ->init_commandChristoph Hellwig1-6/+6
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-08-03scsi: sr: Avoid that opening a CD-ROM hangs with runtime power management ena...Bart Van Assche1-8/+21
2018-04-11sr: get/drop reference to device in revalidate and check_eventsJens Axboe1-4/+15
2018-03-09cdrom: do not call check_disk_change() inside cdrom_open()Maurizio Lombardi1-0/+2
2017-08-25scsi: sd: sr: Convert two assignments into warning statementsBart Van Assche1-1/+1
2017-04-07scsi: sr: Sanity check returned mode dataMartin K. Petersen1-2/+4
2017-02-17Merge branch 'for-4.11/next' into for-4.11/linus-mergeJens Axboe1-3/+6
2017-02-14cdrom: Make device operations read-onlyKees Cook1-1/+1
2017-01-31block: fold cmd_type into the REQ_OP_ spaceChristoph Hellwig1-3/+6
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-09-04scsi: sr: constify sr_pm_ops structureJulia Lawall1-1/+1
2016-06-27block: convert to device_add_disk()Dan Williams1-2/+1
2016-01-26SCSI: fix crashes in sd and sr runtime PMAlan Stern1-0/+4
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-1/+1
2014-11-12scsi: split scsi_nonblockable_ioctlChristoph Hellwig1-10/+5
2014-09-15scsi: balance out autopm get/put calls in scsi_sysfs_add_sdev()Subhash Jadavani1-0/+2
2014-07-25scsi: move the writeable field from struct scsi_device to struct scsi_cdChristoph Hellwig1-2/+2
2014-07-17scsi: set sc_data_direction in common codeChristoph Hellwig1-2/+0
2014-07-17scsi: restructure command initialization for TYPE_FS requestsChristoph Hellwig1-2/+1
2014-07-17scsi: Implement sr_printk()Hannes Reinecke1-29/+32
2014-05-19scsi: reintroduce scsi_driver.init_commandChristoph Hellwig1-13/+6
2013-12-16[SCSI] sr: use block layer runtime PMAaron Lu1-24/+13
2013-05-07block_device_operations->release() should return voidAl Viro1-2/+1
2013-01-25[libata] scsi: no poll when ODD is powered offAaron Lu1-3/+7
2013-01-25[SCSI] sr: support runtime pmAaron Lu1-3/+39
2011-07-21[SCSI] sr: check_events() ignore GET_EVENT when TUR says otherwiseKay Sievers1-4/+42
2011-04-21block: don't block events on excl write for non-optical devicesTejun Heo1-1/+1
2011-03-31Fix common misspellingsLucas De Marchi1-1/+1
2011-01-14[SCSI] sd,sr: kill compat SDEV_MEDIA_CHANGE eventTejun Heo1-4/+0
2010-12-16sr: implement sr_check_events()Tejun Heo1-52/+97
2010-12-16scsi: replace sr_test_unit_ready() with scsi_test_unit_ready()Tejun Heo1-28/+3
2010-12-16scsi: fix TUR error handling in sr_media_change()Tejun Heo1-7/+11
2010-10-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6Linus Torvalds1-1/+7
2010-10-22scsi/sr: add no_read_disc_info scsi_device flagHans de Goede1-1/+7
2010-10-05block: autoconvert trivial BKL users to private mutexArnd Bergmann1-7/+7
2010-08-07block: push down BKL into .open and .releaseArnd Bergmann1-1/+6
2010-08-07block: push down BKL into .locked_ioctlArnd Bergmann1-5/+13
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2009-10-02[SCSI] sr: consider the last written sector when determining media sizeTejun Heo1-8/+14
2009-09-22const: make block_device_operations constAlexey Dobriyan1-1/+1
2009-06-21sd, sr: fix Driver 'sd' needs updating messageHannes Reinecke1-0/+1
2009-05-22block: Do away with the notion of hardsect_sizeMartin K. Petersen1-1/+1
2009-05-11block: convert to pos and nr_sectors accessorsTejun Heo1-7/+8
2009-04-03[SCSI] fix recovered error handlingJames Bottomley1-9/+0
2008-12-29[SCSI] add residual argument to scsi_execute and scsi_execute_reqFUJITA Tomonori1-2/+2
2008-12-04[PATCH 1/2] kill FMODE_NDELAY_NOWChristoph Hellwig1-1/+1
2008-10-21[PATCH] switch srAl Viro1-22/+18
2008-10-21[PATCH] beginning of methods conversionAl Viro1-3/+3
2008-10-21[PATCH] don't mess with file in scsi_nonblockable_ioctl()Al Viro1-1/+2
2008-10-21[PATCH] switch cdrom_{open,release,ioctl} to sane APIsAl Viro1-7/+4
2008-10-09block: unify request timeout handlingJens Axboe1-2/+3
2008-10-09block: don't depend on consecutive minor spaceTejun Heo1-1/+1
2008-09-11block: disable sysfs parts of the disk command filterJens Axboe1-2/+0
2008-08-29remove blk_register_filter and blk_unregister_filter in gendiskFUJITA Tomonori1-0/+2
2008-07-04scsi: sr avoids useless buffer allocationFUJITA Tomonori1-15/+5
2008-06-10[SCSI] sr: fix corrupt CD data after media change and delayJames Bottomley1-0/+3
2008-03-19[SCSI] sd, sr: do not emit change event at device addKay Sievers1-0/+1
2008-02-07[SCSI] sr: fix test unit ready responsesJames Bottomley1-22/+27
2008-01-30[SCSI] implement scsi_data_bufferBoaz Harrosh1-12/+13
2008-01-11[SCSI] sr: update to follow tray status correctlyJames Bottomley1-2/+0
2008-01-11[SCSI] sd,sr: add early detection of medium not presentJames Bottomley1-6/+13
2008-01-11[SCSI] sr,sd: send media state change modification eventsKay Sievers1-3/+11
2008-01-06Revert "scsi: revert "[SCSI] Get rid of scsi_cmnd->done""Linus Torvalds1-15/+6
2008-01-02scsi: revert "[SCSI] Get rid of scsi_cmnd->done"Ingo Molnar1-6/+15
2007-10-12[SCSI] Get rid of scsi_cmnd->doneMatthew Wilcox1-15/+6
2007-10-12[SCSI] move ULD attachment into the prep functionJames Bottomley1-19/+40
2007-07-24[BLOCK] Get rid of request_queue_t typedefJens Axboe1-1/+1
2007-07-18[SCSI] small cleanupsAdrian Bunk1-1/+1
2007-07-14[SCSI] sr: fix error handling in module_initAkinobu Mita1-1/+5
2007-04-17[SCSI] modalias for scsi devicesMichael Tokarev1-0/+2
2007-02-14[PATCH] remove many unneeded #includes of sched.hTim Schmielau1-1/+0
2007-01-06[SCSI] sr: fix error code check in sr_block_ioctl()Tejun Heo1-1/+1
2006-07-09[SCSI] hide EH backup data outside the scsi_cmndChristoph Hellwig1-3/+2
2006-06-26[SCSI] sd/scsi_lib simplify sd_rw_intr and scsi_io_completionLuben Tuikov1-1/+1
2006-06-06[SCSI] fix up request buffer reference in various scsi driversChristoph Hellwig1-1/+1
2006-03-23[PATCH] kill cdrom ->dev_ioctl methodChristoph Hellwig1-11/+26
2006-03-12[SCSI] MODULE_ALIAS_{BLOCK,CHAR}DEV_MAJOR for drivers/scsiRene Herman1-0/+4
2006-02-27[SCSI] Remove devfs support from the SCSI subsystemGreg KH1-2/+0
2006-02-27[SCSI] SCSI core kmalloc2kzallocJes Sorensen1-2/+1
2006-01-14[PATCH] Unlinline a bunch of other functionsArjan van de Ven1-1/+1
2006-01-14[SCSI] always handle REQ_BLOCK_PC requests in common codeChristoph Hellwig1-21/+0
2006-01-12[SCSI] Mask capabilities for SCSI-1 CD driveChuck Ebbert1-2/+3
2006-01-12[SCSI] turn most scsi semaphores into mutexesArjan van de Ven1-8/+9
2005-12-15Fix up SCSI mismergeJames Bottomley1-1/+1
2005-12-15Merge by hand (conflicts in scsi_lib.c)James Bottomley1-17/+3
2005-12-13[SCSI] Consolidate REQ_BLOCK_PC handling path (fix ipod panic)James Bottomley1-17/+3
2005-12-13[SCSI] Mark some core scsi data structures constArjan van de Ven1-1/+1
2005-10-28[SCSI] use {sdev,scmd,starget,shost}_printk in generic codeJeff Garzik1-5/+5
2005-10-28[SCSI] sr: remove dead codeJayachandran C1-1/+1
2005-10-28[SCSI] move the mid-layer printk's over to shost/starget/sdev_printkJames Bottomley1-8/+7
2005-09-14[SCSI] scsi: sd, sr, st, and scsi_lib all fail to copy cmd_len to new cmdTimothy Thelin1-0/+1
2005-08-28Merge by hand (conflicts in sr.c)James Bottomley1-22/+2
2005-08-28[SCSI] convert sr to scsi_execute_reqJames Bottomley1-39/+10
2005-08-28[SCSI] convert the remaining mid-layer pieces to scsi_execute_reqJames Bottomley1-1/+1
2005-08-28[SCSI] sr.c: Fix getting wrong sizePete Zaitcev1-22/+2
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+965