From b2371c25fed6b2e751163df590bb9d9a93a75a0f Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 31 May 2018 17:14:10 -0700 Subject: session: improve disconnect handling If the caller is the session owning thread or the main thread with a worker barrier sync (cli/api) add an event to the pending disconnects vector in the session node and entirely avoid using the event queue. Useful for bursts of disconnects (like an app detach). If disconnects come from a processes, be willing to retry enqueueing the disconnect to the event queue multiple times. Change-Id: Ieece1f1091b713f94c41c703b6e805bc8498816a Signed-off-by: Florin Coras --- src/svm/svm_fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/svm/svm_fifo.c') diff --git a/src/svm/svm_fifo.c b/src/svm/svm_fifo.c index dbdb813a7df..10c319236ee 100644 --- a/src/svm/svm_fifo.c +++ b/src/svm/svm_fifo.c @@ -174,7 +174,8 @@ format_svm_fifo (u8 * s, va_list * args) s = format (s, "cursize %u nitems %u has_event %d\n", f->cursize, f->nitems, f->has_event); - s = format (s, " head %d tail %d\n", f->head, f->tail); + s = format (s, " head %d tail %d segment manager %u\n", f->head, f->tail, + f->segment_manager); if (verbose > 1) s = format -- cgit 1.2.3-korg