Spdk/lib/bdev
Daniel Verkamp 7fd3a82561 bdev: rearrange struct spdk_bdev_io
Move the commonly-accessed fields to the front so they end up in the
same cache line where possible.

Also tweak the types of type, status, error.nvme.sct, error.nvme.sc,
error.scsi.sc, and error.scsi.sk (they can fit in 8 bits), and move the
Write Zeroes splitting variables into u.bdev.

This reduces sizeof(struct spdk_bdev_io) from 272 to 224, in addition to
the better cache line usage.

Change-Id: I4a91fd07f252e7add4a2db179df9c53268672198
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/404053
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-03-16 14:06:36 -04:00
..
aio io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
error bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
gpt bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
lvol bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
malloc bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
null io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
nvme io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
pmem bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
rbd io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
rpc bdev: add spdk_bdev_get_uuid() function 2018-03-08 10:49:51 -05:00
split bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
virtio bdev/virtio/scsi: hotremove targets on EVENTS_MISSED rescan 2018-03-13 17:14:34 -04:00
bdev.c bdev: rearrange struct spdk_bdev_io 2018-03-16 14:06:36 -04:00
Makefile bdev: move part helper code into its own file 2018-02-27 12:36:26 -05:00
part.c bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04: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