memif: contention between memif_disconnect and memif RX/TX threads 19/39619/3
authorSteven Luong <sluong@cisco.com>
Thu, 5 Oct 2023 22:33:40 +0000 (15:33 -0700)
committerDamjan Marion <dmarion@0xa5.net>
Wed, 18 Oct 2023 09:16:35 +0000 (09:16 +0000)
commit34c721fb47155135bf2173ca7b9a31aaacfde190
tree4c769cfadcb11b94650bb7fca9dfba68ab3f0dc1
parentbf236630f518ae94bc2ef76f83b269b98dd109d4
memif: contention between memif_disconnect and memif RX/TX threads

memif_disconect may be called without barrier sync. It removes stuff in mq
without protection which may cause troubles for memif RX/TX worker threads.

The fix is to protect mq removal in memif_disconnect.

Type: fix

Change-Id: I368c466d1f13df98980dfa87e8442fbcd822a428
Signed-off-by: Steven Luong <sluong@cisco.com>
src/plugins/memif/memif.c