Previously only a single thread could submit abort commands for admin commands and it was the thread of the corresponding controller. When we support multipath, we need to traverse the list of controllers to which the target admin command is submitted. Threads of controllers may be different. On the other hand, the previous implementation made the I/O flow very clean, but the I/O flow will not be clean if there are many controllers and the subsystem does not have its thread. This patch changes the policy so that any SPDK thread can submit abort commands for admin commands. Then when multipath is supported, we will be able to traverse the list of controllers simply on the current thread to abort either I/O command or admin command. We already are able to submit any admin command on any thread anytime including abort command. Hence this will not cause any issue. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ib69de33f2e84b03861c7d95ce060035bdb589e4b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8121 Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |