event: allocate/free IO channel thread context in reactor
This will help catch any cases where I/O channels are not released during shutdown. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I96cf93218026b9ef319abcf0662fe258bf75174d
This commit is contained in:
parent
06ef766bc0
commit
b5c1e5ada7
@ -56,6 +56,7 @@
|
|||||||
#include "reactor.h"
|
#include "reactor.h"
|
||||||
|
|
||||||
#include "spdk/log.h"
|
#include "spdk/log.h"
|
||||||
|
#include "spdk/io_channel.h"
|
||||||
|
|
||||||
#define SPDK_MAX_SOCKET 64
|
#define SPDK_MAX_SOCKET 64
|
||||||
|
|
||||||
@ -305,6 +306,7 @@ _spdk_reactor_run(void *arg)
|
|||||||
uint64_t spin_cycles, sleep_cycles;
|
uint64_t spin_cycles, sleep_cycles;
|
||||||
uint32_t sleep_us;
|
uint32_t sleep_us;
|
||||||
|
|
||||||
|
spdk_allocate_thread();
|
||||||
set_reactor_thread_name();
|
set_reactor_thread_name();
|
||||||
SPDK_NOTICELOG("Reactor started on core 0x%x\n", rte_lcore_id());
|
SPDK_NOTICELOG("Reactor started on core 0x%x\n", rte_lcore_id());
|
||||||
|
|
||||||
@ -369,6 +371,7 @@ _spdk_reactor_run(void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spdk_free_thread();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user