static void blockdev_aio_destroy_cb(void *io_device, void *ctx_buf) { struct blockdev_aio_io_channel *io_channel = ctx_buf; io_destroy(io_channel->io_ctx); free(io_channel->events); spdk_poller_unregister(&io_channel->poller, NULL); }
static void spdk_nvmf_conn_destruct(struct spdk_nvmf_conn *conn) { struct spdk_event *event; SPDK_TRACELOG(SPDK_TRACE_DEBUG, "conn %p\n", conn); conn->state = CONN_STATE_INVALID; event = spdk_event_allocate(rte_lcore_id(), _conn_destruct, conn, NULL, NULL); spdk_poller_unregister(&conn->poller, event); rte_atomic32_dec(&g_num_connections[rte_lcore_id()]); }