Spdk/lib/scsi
Daniel Verkamp 683eeb59b8 scsi: annotate unlikely checks in read/write
The normal execution path for read/write commands is that none of the
checks fail; annotate all of the checks in spdk_bdev_scsi_readwrite()
with spdk_unlikely to encourage the compiler to generate the happy path
as straight-line code and move the error handling out of line.

Change-Id: Id0e606c78f0b99662e5c27e3bfa32535de20aa13
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/393700
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
2018-01-05 00:01:37 -05:00
..
dev.c scsi: remove spdk_scsi_dev_print() function 2017-12-12 18:04:20 -05:00
lun_db.c scsi: remove delete_lun RPC call and move claimed flag 2017-03-13 11:27:22 -07:00
lun.c scsi/lun: fix hotremove with no io_channels open 2018-01-03 14:38:11 -05:00
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
port.c scsi: remove port from scsi_dev dynamically 2017-10-12 15:46:14 -04:00
scsi_bdev.c scsi: annotate unlikely checks in read/write 2018-01-05 00:01:37 -05:00
scsi_internal.h scsi: SCSI string name format 2018-01-04 15:48:28 -05:00
scsi_rpc.c scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
scsi.c log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
task.c scsi, iscsi: move task->parent to iSCSI task 2018-01-05 00:01:37 -05:00