numam-spdk/lib/nvmf
Shuhei Matsumoto cf95d4a24f sock: Fix return value of spdk_sock_group_poll to return number of events
spdk_sock_group_poll() and spdk_sock_group_poll_count() had returned
0 on success. The implementation didn't match the specification
described in the header file, and couldn't be used to collect stats
correctly because 0 means idle.

This patch fixes the return value of spdk_sock_group_poll() and
spdk_sock_group_poll_count() to return number of events and
the callers not to overwrite the return value by 0.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I7e2a17187fc74ea44d3acf2f35d63f5e5a254eda
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463710
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-08-02 00:19:43 +00:00
..
ctrlr_bdev.c nvmf: Add BDEV IO pending statistics 2019-07-12 12:46:29 +00:00
ctrlr_discovery.c nvmf: always update discovery log page if the offset is zero 2019-07-25 18:05:13 +00:00
ctrlr.c nvmf: check HOSTNQN access right for discovery service 2019-07-24 11:25:59 +00:00
fc_ls.c NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
fc.c NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
Makefile NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
nvmf_fc.h NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
nvmf_internal.h nvmf: check HOSTNQN access right for discovery service 2019-07-24 11:25:59 +00:00
nvmf.c nvmf/rpc: Fix io channel reference counting in NVMf statistics 2019-07-29 18:05:09 +00:00
rdma.c nvmf/rpc: Fix io channel reference counting in NVMf statistics 2019-07-29 18:05:09 +00:00
subsystem.c nvmf: spdk_nvmf_subsystem_remove_ns is no longer asynchronous 2019-07-11 11:19:53 +00:00
tcp.c sock: Fix return value of spdk_sock_group_poll to return number of events 2019-08-02 00:19:43 +00:00
transport.c NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
transport.h NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00