+48
−1
+224
−0
+21
−59
+1
−0
Loading
When the bdev library is finished, a bdev_get_bdevs RPC call may be still in progress. We should abort it to avoid memory leak. Poller was created in bdev_rpc.c. If bdev.c aborts poller in bdev_rpc.c, cross reference occurs and this causes a lot of cumbersome changes into unit tests. Hence, add a new API spdk_bdev_open_async() and move poller from bdev_rpc.c to bdev.c. This simplifies the fix a lot. Together with the previous patch, fixes the issue #3062. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I1e131732d149c8742e9584b2c9e588f62a0c0c56 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19358 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Jim Harris <jim.harris@gmail.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>