Spdk/lib/bdev
Jim Harris 70a0bc3096 bdev: add bdev_io optimizations
First, improve packing of spdk_bdev_io.  Move any
fields which must be zeroed into the first cacheline.
Also change type and status from enums (needing 4 bytes)
to int16_t which is still a far bigger range than
needed.

Next, modify spdk_bdev_get_io to only zero the
first cacheline (actually a bit less).

SPDK_BDEV_IO_TYPE_INVALID is also added, making it
explicit that 0 is an invalid value for the IO type.
Previously this was somewhat inferred.

There are still additional improvements that can
be made to this area - primarily combining
spdk_bdev_get_io() and spdk_bdev_io_init() into
a single function.

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

Reviewed-on: https://review.gerrithub.io/377799
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-09-12 11:16:50 -04:00
..
aio bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
error bdev/error: use bdev_part helper functions 2017-09-12 11:16:50 -04:00
gpt bdev/gpt: use new bdev_part helper functions 2017-09-12 11:16:50 -04:00
malloc bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
null bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
nvme bdev/bdev_nvme.c: correct order of args in unmap call 2017-09-11 19:08:22 -04:00
rbd bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
rpc bdev: update the get_bdevs RPC method with optional parameter 2017-08-28 15:19:34 -04:00
split bdev: add common partition helper functions 2017-09-12 11:16:50 -04:00
virtio bdev_virtio: fix logging with enabled debug 2017-09-11 19:10:43 -04:00
bdev.c bdev: add bdev_io optimizations 2017-09-12 11:16:50 -04:00
Makefile virtio: add initial rev of virtio-scsi initiator bdev module 2017-08-22 11:54:15 -04:00
scsi_nvme.c bdev: add API to translate to SCSI status 2017-05-04 09:11:42 -07:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00