256 bytes will be enough but not too large for the name of SPDK thread. Use fixed size string for the name of SPDK thread and reduce the potential malloc failure. If the length of passed name is longer then 256, it will be cut off without error. Change-Id: I13a24997a73a8365c8bf5e093f2bd78861ba6660 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459720 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
thread.c |