7fd3a82561
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>