numam-spdk/lib/bdev
Jim Harris 32d7c91cbc bdev: add spdk_bdev_queue_io_wait()
This function is intended to be used when an spdk_bdev
I/O operation (such as spdk_bdev_write or spdk_bdev_write_blocks)
fails due to spdk_bdev_io buffer exhaustion.  The caller
can queue an spdk_bdev_io_wait structure on the calling thread
which will be invoked when an spdk_bdev_io buffer is available.

While here, turn off error messages in bdev.c related to
spdk_bdev_io pool exhaustion, since we now have an API designed
to gracefully recover from it.

Also modify bdevperf as an example of how to use this new API.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ia55f6582dc5a8d6d8bcc74689fd846d742324510

Reviewed-on: https://review.gerrithub.io/415074
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-06-20 17:41:47 +00:00
..
aio bdev: add delete_aio_bdev call 2018-06-19 20:43:12 +00:00
error bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
gpt thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
iscsi bdev/iscsi: fix double spdk_bdev_module_finish_done() call 2018-06-15 20:57:08 +00:00
lvol bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
malloc thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
null thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
nvme bdev/nvme: factor out NS bdev creation function 2018-06-18 22:23:06 +00:00
passthru thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
pmem bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
rbd bdev/rbd: destroy ioctx in bdev_rbd_init 2018-06-14 21:31:06 +00:00
rpc bdev/rpc: make get_bdevs_iostat name param optional 2018-05-25 23:26:59 +00:00
split thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
virtio thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
bdev.c bdev: add spdk_bdev_queue_io_wait() 2018-06-20 17:41:47 +00:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
part.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
scsi_nvme.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
vtune.c bdev: disable new GCC 7 warning in VTune code 2018-03-19 15:58:15 -04:00