the API of k_mem_pool_alloc should handle the -EAGAIN which is return value of pool_alloc.
at 271 line in mempool.c comments" -EAGAIN isn't for,propagation to the caller, it's to tell the loop in k_mem_pool_alloc() to try again synchronously."but the k_mem_pool_alloc does not handle loop.
by xuemingxing .xuemingxing@zte.com.cn