android_kernel_xiaomi_sm7250/include/scsi
Luben Tuikov 03aba2f795 [SCSI] sd/scsi_lib simplify sd_rw_intr and scsi_io_completion
This patch simplifies "good_bytes" computation in sd_rw_intr().
sd: "good_bytes" computation is always done in terms of the resolution
of the device's medium, since after that it is the number of good bytes
we pass around and other layers/contexts (as opposed ot sd) can translate
that to their own resolution (block layer:512).  It also makes
scsi_io_completion() processing more straightforward, eliminating the
3rd argument to the function.

It also fixes a couple of bugs like not checking return value,
using "break" instead of "return;", etc.

I've been running with this patch for some time now on a
test (do-it-all) system.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-06-26 10:00:20 -05:00
..
iscsi_if.h [SCSI] iscsi: increment expstatsn during login 2006-05-10 10:13:21 -05:00
iscsi_proto.h [SCSI] iscsi: update version 2006-05-20 09:36:38 -05:00
libiscsi.h [SCSI] iscsi: don't switch states when just cleaning up 2006-06-05 19:10:45 -04:00
scsi_cmnd.h [SCSI] sd/scsi_lib simplify sd_rw_intr and scsi_io_completion 2006-06-26 10:00:20 -05:00
scsi_dbg.h [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
scsi_device.h
scsi_devinfo.h Merge ../scsi-rc-fixes-2.6 2006-04-14 15:47:45 -05:00
scsi_driver.h
scsi_eh.h [SCSI] remove scsi_request infrastructure 2006-06-10 16:24:40 -05:00
scsi_host.h [PATCH] SCSI: implement shost->host_eh_scheduled 2006-05-15 20:57:20 +09:00
scsi_ioctl.h
scsi_tcq.h
scsi_transport_fc.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
scsi_transport_iscsi.h [SCSI] iscsi: fix writepsace race 2006-06-05 19:12:25 -04:00
scsi_transport_sas.h
scsi_transport_spi.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
scsi_transport.h
scsi.h
scsicam.h
sg.h
srp.h [SCSI] srp.h: Add I/O Class values 2006-06-17 20:37:38 -07:00