Spdk/test/unit/lib/util/io_channel.c
Jim Harris 93cfe874b2 lib/util: handle channel being removed during spdk_for_each_channel
A channel may have been deleted between when a message was sent to
a thread and when it gets executed on that thread.  So we must look
for the channel when the messages gets executed - if it's not found,
just continue to the next thread(s).

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ib7e596f11f287c6be521ba729d33378f0a825c7e

Reviewed-on: https://review.gerrithub.io/378002
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2017-09-20 19:27:06 -04:00
..
.gitignore test: move lib/util unit tests to test/unit 2017-06-20 13:46:07 -04:00
io_channel_ut.c lib/util: handle channel being removed during spdk_for_each_channel 2017-09-20 19:27:06 -04:00
Makefile test: add framework for simulating multithreading in unit tests 2017-09-20 19:27:06 -04:00