2ea005f0a9
Orderings of portal group create operation are diferrent between config file and JSON-RPC. Unification is necessary for correct concurrency control and the global accept poller like NVMf-tgt. Hence unify the ordering of operations in this patch. Common ordering of portal group create operation between configuration file and JSON-RPC after this patch is the following: - create a portal group - create portals - add the portals to the portal group - open the portals of the portal group - add the portal group to the global portal group list After this patch, the gap between listening socket and accepting socket will be increased a little when portals groups are creted by config file. However this will cause no issue because of the TCP backlog and resend mechanism. Besides, necessary concurrency control is added and minor refactoring is done. About portal group delete operation, orderings of application shutdown and JSON-RPC are already unified. Change-Id: I1db7ef4400388127134d7734c68e138a4573b734 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/396848 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile |