Spdk/lib/iscsi
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
..
conn.c iscsi: Assign not pointer but instance of spdk_cpuset in struct spdk_iscsi_portal_grp 2019-07-04 00:30:22 +00:00
conn.h iscsi: Deprecate MinConnectionsPerCore 2019-05-06 17:10:48 +00:00
init_grp.c iscsi: Use not malloc'ed but fixed size string for initiator address 2019-07-01 05:03:07 +00:00
init_grp.h iscsi: Use not malloc'ed but fixed size string for initiator address 2019-07-01 05:03:07 +00:00
iscsi_rpc.c jsonrpc: don't check returned value from spdk_jsonrpc_begin_result() 2019-07-22 05:13:30 +00:00
iscsi_subsystem.c sock: Fix return value of spdk_sock_group_poll to return number of events 2019-08-02 00:19:43 +00:00
iscsi.c iscsi: Use not malloc'ed but fixed size string for target name and alias 2019-07-01 05:03:07 +00:00
iscsi.h iscsi: Simplify include relationships to avoid cyclic inclusion 2019-07-01 05:03:07 +00:00
Makefile iscsi: Move acceptor into portal_grp 2019-05-16 23:23:45 +00:00
md5.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
md5.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
param.c iscsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00
param.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.c iscsi: Assign not pointer but instance of spdk_cpuset in struct spdk_iscsi_portal_grp 2019-07-04 00:30:22 +00:00
portal_grp.h iscsi: Assign not pointer but instance of spdk_cpuset in struct spdk_iscsi_portal_grp 2019-07-04 00:30:22 +00:00
task.c iscsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00
task.h iscsi: Propagate SCSI error status to split SCSI read/write commands 2018-12-11 16:37:55 +00:00
tgt_node.c iscsi: Use not malloc'ed but fixed size string for target name and alias 2019-07-01 05:03:07 +00:00
tgt_node.h iscsi: Use not malloc'ed but fixed size string for target name and alias 2019-07-01 05:03:07 +00:00