-
- Downloads
[SCSI] Get rid of scsi_cmnd->done
The ULD ->done callback moves into the scsi_driver. By moving the call to scsi_io_completion() from scsi_blk_pc_done() to scsi_finish_command(), we can eliminate the latter entirely. By returning 'good_bytes' from the ->done callback (rather than invoking scsi_io_completion()), we can stop exporting scsi_io_completion(). Also move the prototypes from sd.h to sd.c as they're all internal anyway. Rename sd_rw_intr to sd_done and rw_intr to sr_done. Inspired-by:Christoph Hellwig <hch@infradead.org> Signed-off-by:
Matthew Wilcox <willy@linux.intel.com> Signed-off-by:
James Bottomley <James.Bottomley@SteelEye.com>
Showing
- drivers/scsi/scsi.c 17 additions, 3 deletionsdrivers/scsi/scsi.c
- drivers/scsi/scsi_error.c 0 additions, 1 deletiondrivers/scsi/scsi_error.c
- drivers/scsi/scsi_lib.c 0 additions, 14 deletionsdrivers/scsi/scsi_lib.c
- drivers/scsi/scsi_priv.h 1 addition, 0 deletionsdrivers/scsi/scsi_priv.h
- drivers/scsi/sd.c 18 additions, 10 deletionsdrivers/scsi/sd.c
- drivers/scsi/sr.c 6 additions, 15 deletionsdrivers/scsi/sr.c
- include/scsi/scsi_cmnd.h 0 additions, 2 deletionsinclude/scsi/scsi_cmnd.h
- include/scsi/scsi_driver.h 1 addition, 0 deletionsinclude/scsi/scsi_driver.h
- include/scsi/sd.h 0 additions, 13 deletionsinclude/scsi/sd.h
Loading
Please register or sign in to comment