The bdev layer nicely handles the case where we call this function with the buffers already present - it just immediately calls the get_buf_cb. But this adds extra overhead in the case where the buffer is already present. Since nvme has no alignment restrictions, we can just check the iovs directly and avoid the extra call to spdk_bdev_io_get_buf when possible. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I66df0fde574a35e995a3432999d75bdbf9b27212 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4317 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
bdev_nvme_cuse_rpc.c | ||
bdev_nvme_rpc.c | ||
bdev_nvme.c | ||
bdev_nvme.h | ||
bdev_ocssd_rpc.c | ||
bdev_ocssd.c | ||
bdev_ocssd.h | ||
common.c | ||
common.h | ||
Makefile | ||
nvme_rpc.c | ||
vbdev_opal_rpc.c | ||
vbdev_opal.c | ||
vbdev_opal.h |