numam-spdk/app
Ben Walker fb641c4b54 iscsi: Assign connections to poll groups instead of lcores.
This patch binds poll groups to SPDK thread through IO channel and
assigns connections to poll groups instead of cores.

iSCSI subsystem registers iSCSI global object as an IO device, and create
poll groups as context of IO channels of the IO device.

Each portal get and hold portal group on which the corresponding acceptor is
running.

When a connection is constructed, iSCSI subsystem assigns a poll group
to the connection by getting it from the corresponding portal.

When a connection enters full-feature phase, iSCSI subsystem schedules
the connection to a poll group by round-robin.

Then, each connection can know its running SPDK thread directly and can
use SPDK message passing infrastructure instead of SPDK event framework.

By this change, iSCSI connections are binded to SPDK thread, and not
binded to processor core anymore.

Some other changes in this patch are
- core ID is removed from the output of get_iscsi_connections RPC. The
  upcoming patches will change the RPC to use spdk_for_each_channel and can
  access SPDK thread safely, and add SPDK thread ID instead.
- utilize UT multithread framework added by the last patch to test
  iSCSI poll groups by UT.

Change-Id: Iec73c778aa413bcabdb63141cc41d4160911ea0e
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463359
Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-08-12 20:49:36 +00:00
..
iscsi_tgt app/iscsi_tgt: Optional VMD enumeration 2019-07-01 03:53:06 +00:00
iscsi_top iscsi: Assign connections to poll groups instead of lcores. 2019-08-12 20:49:36 +00:00
nvmf_tgt NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
spdk_lspci app/spdk_lspci: Mark VMD and device behind VMD 2019-07-09 04:04:16 +00:00
spdk_tgt NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
trace app/trace: suppress TSC output by default 2019-05-02 08:41:56 +00:00
trace_record lib/trace: add trace_record tool 2019-01-30 06:36:25 +00:00
vhost app/vhost: Optional VMD enumeration 2019-07-01 03:53:06 +00:00
Makefile app/spdk_lspci: App for printing available SPDK PCI devices 2019-06-27 12:20:35 +00:00