Move get_fio_qpair() out of ifdef and reuse it in spdk_fio_queue(), since the code is next to identical. The only difference is that get_fio_qpair() returns NULL if qpair->ns is not set. Since we know that get_fio_qpair() returns NULL if qpair>ns is not set, we can also remove the equivalent check in spdk_fio_queue(). Also use ns pointer instead of qpair->ns pointer in two other places in spdk_fio_queue(). Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: Ie647a814ff0b7a6f2bb81cbc9d7e95537fbe5256 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7897 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
interrupt_tgt | ||
ioat | ||
nvme | ||
nvmf | ||
sock | ||
vmd | ||
Makefile |