Spdk/lib/bdev
Daniel Verkamp e45c36ffb3 bdev: simplify QoS poller registration
The helper functions were only needed when this was sent as a message,
but they are only called directly in the current code, so just move the
contents of the functions inline to their call sites.

The unregister path can also be simplified to pass the poller directly
to spdk_poller_unregister(); it already handles the case of a NULL
poller.

Change-Id: I509cf8922b53e1e616c9e976610b20061bb50066
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/403364
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-03-13 14:06:23 -04:00
..
aio io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
error bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
gpt bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
lvol bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
malloc bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
null io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
nvme io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
pmem bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
rbd io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
rpc bdev: add spdk_bdev_get_uuid() function 2018-03-08 10:49:51 -05:00
split bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
virtio io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
bdev.c bdev: simplify QoS poller registration 2018-03-13 14:06:23 -04:00
Makefile bdev: move part helper code into its own file 2018-02-27 12:36:26 -05:00
part.c bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00