Spdk/examples/nvme
Daniel Verkamp d9aed01ff0 nvme/fio_plugin: simplify getevents/event hooks
The previous implementation tried to maintain a ring buffer of completed
I/O retrieved from ->getevents() that had not yet been retrieved by
->event(), but this is not necessary.  None of the other FIO engines
implement this sort of ring buffer, and the only code that calls
->getevents() will always retrieve the full number of events via
->event() afterwards.

Instead, just count how many I/Os have been completed within each
->getevents() call in iocq_count, and reset iocq_count on each new
->getevents().

Change-Id: I2776c3a5c89a0d2b24478328bc138ff7a9fb5bdd
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-03-17 09:37:42 -07:00
..
arbitration env: Move DPDK intialization into the env library. 2017-02-15 17:16:37 -07:00
fio_plugin nvme/fio_plugin: simplify getevents/event hooks 2017-03-17 09:37:42 -07:00
hello_world env: Move DPDK intialization into the env library. 2017-02-15 17:16:37 -07:00
hotplug env: Move DPDK intialization into the env library. 2017-02-15 17:16:37 -07:00
identify util: add SPDK_COUNTOF() array size macro 2017-03-07 12:43:42 -07:00
nvme_manage util: add SPDK_COUNTOF() array size macro 2017-03-07 12:43:42 -07:00
perf examples/nvme/perf: set io_queue_size in NVMe probe 2017-03-07 12:15:59 -07:00
reserve env: Move DPDK intialization into the env library. 2017-02-15 17:16:37 -07:00
Makefile example: Add example for nvme hotplug. 2016-12-01 10:23:10 +08:00