+7
−3
+7
−6
Loading
The memset was zeroing a lot of bytes that get initialized either later in this function or elsewhere in the submission code path. Eliminating these extra memsets saves a few nanoseconds of CPU overhead in the NVMe submission path. Note: one use of the cpl data member depended on the nvme_allocate_request memset. Since this use case is not in the primary I/O path, just memset it in that specific location before using it. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: Ife483a4d9c24c033cc7d26d94ec1700905a936f4 Reviewed-on: https://review.gerrithub.io/413153 Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>