Spdk/examples
wanghailiangx 95fd6cb455 example/nvme: Adjust logic lines about if (current_queue_depth > 0)
The original code is logically correct because
spdk_nvme_qpair_process_completions() may decrease
ns_ctx->current_queue_depth. But I still recommend doing
an optimization so users can easily understand the code.
Prioritize code cleanup more than one additional polling.

Change-Id: I3613b1b4e294661fd35b7e5bebdb32e1c8352270
Signed-off-by: Hailiang Wang <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14332
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: <qun.wan@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
2022-12-07 08:42:55 +00:00
..
accel accel_perf: Add compress and decompress support 2022-11-28 09:45:27 +00:00
bdev fio_plugin: spdk_bdev_get_by_name on spdk thread 2022-12-06 21:20:17 +00:00
blob add Intel copyright notices (and/or SPDX lic) where missing 2022-11-10 08:28:53 +00:00
idxd update Intel copyright notices 2022-11-10 08:28:53 +00:00
interrupt_tgt Add SPDX header to various files 2022-11-29 08:27:51 +00:00
ioat update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme example/nvme: Adjust logic lines about if (current_queue_depth > 0) 2022-12-07 08:42:55 +00:00
nvmf update Intel copyright notices 2022-11-10 08:28:53 +00:00
sock update Intel copyright notices 2022-11-10 08:28:53 +00:00
util add Intel copyright notices (and/or SPDX lic) where missing 2022-11-10 08:28:53 +00:00
vmd examples/vmd: Add nvme library to VMD example apps 2022-12-05 09:35:14 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00