1ba93e61d4
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>