+14
−11
Loading
NVMe-oF FC transport have used its own buffer pool and have not used common buffer pool yet. It looks that there is no particular reason to prevent FC transport from using the common buffer pool. This patch extract checking fc_req->data_from_pool from nvmf_fc_request_free_buffers() to make the transition easier. fc_req->req.iovcnt and fc_req->req.data should be cleared regardless of fc_req->data_from_pool. Hence extract them into callees. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I36420f0e573d1ec3f9f3a75f6b2ced82ade89dd3 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465864 Reviewed-by:
Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>