svm: immediate fifo growth even when wrapped 61/22761/6
authorRyujiro Shibuya <ryujiro.shibuya@owmobility.com>
Wed, 16 Oct 2019 05:30:02 +0000 (06:30 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 16 Oct 2019 15:28:44 +0000 (15:28 +0000)
commit8e20fe7ab445e2de80caabb298aef8a658f6d4ab
treed125ae13ab94d9abe8a2d233e0258c858fa931fa
parenta9f1e7d4fd764b4f68e830528dbd296921050293
svm: immediate fifo growth even when wrapped

Type: fix

- when the fifo is wrapped, and if applicable, insert a new chunk after
  the tail-chunk and rebuild the rb_tree.
- make sure that this new algorithm can be applied only when the fifo is
  used by a single thread (master-thread of the fifo).

Signed-off-by: Ryujiro Shibuya <ryujiro.shibuya@owmobility.com>
Change-Id: I3fc187bc496ea537ca24381e4abc08d2906c9e03
src/svm/svm_fifo.c
src/svm/svm_fifo.h