From 7b3aec455bf13833918d8035e18d3a9193838aa9 Mon Sep 17 00:00:00 2001 From: Hailiang Wang Date: Fri, 16 Aug 2019 15:13:29 +0800 Subject: [PATCH] doc/bdev_pg: replace spdk_allocate_thread() The function spdk_allocate_thread() is no longer used. Instead, this function spdk_thread_create() is used. Change-Id: Iaabb700bef718efc3cc90d8b46160530f0082b76 Signed-off-by: Hailiang Wang Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465382 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- doc/bdev_pg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/bdev_pg.md b/doc/bdev_pg.md index bbaad1e95..66929c617 100644 --- a/doc/bdev_pg.md +++ b/doc/bdev_pg.md @@ -51,7 +51,7 @@ The bdev layer depends on the generic message passing infrastructure abstracted by the header file include/spdk/thread.h. See @ref concurrency for a full description. Most importantly, calls into the bdev library may only be made from threads that have been allocated with SPDK by calling -spdk_allocate_thread(). +spdk_thread_create(). From an allocated thread, the bdev library may be initialized by calling spdk_bdev_initialize(), which is an asynchronous operation. Until the completion