Spdk/lib/bdev
Jim Harris 1ba93e61d4 bdev: eliminate memset in spdk_bdev_get_io
Most relevant fields get initialized after the structure
is returned to the caller, so this memset is just
wasting CPU cycles.

buf still needs to be set to NULL, so just set that
field explicitly.

bdevperf with null backend shows a 10% improvement
with this patch.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I92ef0ea887f1307abdcd4b80bc08b45ccefe27d9

Reviewed-on: https://review.gerrithub.io/393714
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-01-05 12:44:31 -05:00
..
aio util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
error bdev/error: add bdev_part hotremove callback 2018-01-03 12:11:26 -05:00
gpt build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
lvol util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
malloc build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
null build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
nvme build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
pmem util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
rbd bdev: unregister all bdevs in spdk_bdev_finish() 2017-12-21 13:29:29 -05:00
rpc bdev: Return aliases list through get_bdevs 2018-01-04 13:15:09 -05:00
split build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
virtio util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
bdev.c bdev: eliminate memset in spdk_bdev_get_io 2018-01-05 12:44:31 -05:00
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00