numam-spdk/lib
Shuhei Matsumoto d421876f98 lib/iscsi: Fix conn->state not go back to EXITING by using spdk_thread_send_msg
Updating conn->state had not been guarded by any mutex. When SPDK
iSCSI target has multiple SPDK threads, iscsi_drop_conns() may update
conn->state by a thread different from the thread of conn->pg.

This patch ensures conn->state is updated by the thread of conn->pg
by sending a message to the thread.

This fix is not perfect but connection reschedule is done only once
per connection when moving to the full feature phase. So this fix
will be simple and enough for now.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I500474a27659438473b0eea598d35c90624a1d10
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1930
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
2020-04-22 09:24:02 +00:00
..
accel make: add a map file for libspdk_accel. 2020-04-03 06:31:46 +00:00
bdev lib/bdev: add a map file. 2020-04-15 22:10:08 +00:00
blob blob: inline _spdk_blob_calculate_lba_and_lba_count() 2020-04-22 09:18:41 +00:00
blobfs lib/blobfs: remove spdk prefix from private APIs 2020-04-22 09:21:55 +00:00
conf lib/conf: add a map file for this library. 2020-04-22 09:21:55 +00:00
env_dpdk lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
env_ocf ocf: update ocf submodule to v20.3 2020-04-17 07:32:48 +00:00
event lib/event: add subsystem iterator functions. 2020-04-22 09:21:55 +00:00
ftl lib/ftl: Add a map file. 2020-04-22 09:21:55 +00:00
ioat memory.h: move to public headers 2020-03-19 08:50:45 +00:00
iscsi lib/iscsi: Fix conn->state not go back to EXITING by using spdk_thread_send_msg 2020-04-22 09:24:02 +00:00
json make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
jsonrpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
log log: spdk_log_dump more characters than required 2020-04-14 11:34:45 +00:00
log_rpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
lvol lvol: do not refer to blob when create returned error 2020-04-02 07:03:35 +00:00
nbd lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
net make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
notify make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
nvme nvme: return the physical address in nvme_pcie_ctrlr_alloc_cmb() 2020-04-22 09:18:22 +00:00
nvmf lib/nvmf: fix unreachable code. 2020-04-22 09:21:04 +00:00
reduce make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rocksdb global: rename copy to accel 2020-02-18 08:05:34 +00:00
rpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rte_vhost make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
scsi lib/scsi: Remove spdk prefix from private functions 2020-04-16 08:09:14 +00:00
sock lib/sock: remove spdk_sock_set_priority 2020-04-22 09:19:01 +00:00
thread lib/thread: Add busy count for poller to increment only when some work was done 2020-04-09 13:44:14 +00:00
trace make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
ut_mock make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
util pipe: Simplify the pipe code 2020-03-31 07:59:26 +00:00
vhost lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
virtio memory.h: move to public headers 2020-03-19 08:50:45 +00:00
vmd make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00