+6
−5
Loading
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>