umber-kernel/include/scsi
Chaotian Jing f03e94f23b scsi: core: Fix the return value of scsi_logical_block_count()
scsi_logical_block_count() should return the block count of a given SCSI
command. The original implementation ended up shifting twice, leading to an
incorrect count being returned. Fix the conversion between bytes and
logical blocks.

Cc: stable@vger.kernel.org
Fixes: 6a20e21ae1 ("scsi: core: Add helper to return number of logical blocks in a request")
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Link: https://lore.kernel.org/r/20240813053534.7720-1-chaotian.jing@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-08-16 21:02:06 -04:00
..
fc
fc_frame.h
fcoe_sysfs.h
iscsi_if.h
iscsi_proto.h
iser.h
libfc.h scsi: libfc: Add some kernel-doc comments 2024-04-24 21:29:27 -04:00
libfcoe.h
libiscsi.h
libiscsi_tcp.h
libsas.h scsi: libata: Switch to using ->device_configure 2024-04-11 21:37:50 -04:00
sas.h
sas_ata.h
scsi.h scsi: core: Don't use "proxy" headers 2024-04-24 21:27:15 -04:00
scsi_bsg_iscsi.h
scsi_cmnd.h scsi: core: Fix the return value of scsi_logical_block_count() 2024-08-16 21:02:06 -04:00
scsi_common.h
scsi_dbg.h
scsi_device.h
scsi_devinfo.h scsi: core: Introduce the BLIST_SKIP_IO_HINTS flag 2024-06-13 21:03:13 -04:00
scsi_dh.h
scsi_driver.h SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
scsi_eh.h
scsi_host.h SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
scsi_ioctl.h
scsi_proto.h scsi: sd: Atomic write support 2024-06-20 15:19:17 -06:00
scsi_status.h
scsi_tcq.h
scsi_transport.h
scsi_transport_fc.h Merge patch series "convert SCSI to atomic queue limits, part 1 (v3)" 2024-04-12 06:35:55 -04:00
scsi_transport_iscsi.h driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
scsi_transport_sas.h scsi: mpi3mr: Fix ATA NCQ priority support 2024-06-11 21:40:23 -04:00
scsi_transport_spi.h
scsi_transport_srp.h
scsicam.h
sg.h
srp.h
viosrp.h