svm: immediate fifo growth even when wrapped 22/22922/2
authorRyujiro Shibuya <ryujiro.shibuya@owmobility.com>
Wed, 16 Oct 2019 05:30:02 +0000 (06:30 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 29 Oct 2019 09:49:06 +0000 (09:49 +0000)
commit87aadb1e758b4f853e7b75770297f33032364d68
treef7a064abd7d607ca6c70640a102036bc2443bf83
parente68fe9c5163a74f39e400dc44c711677ddb01466
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
(cherry picked from commit 8e20fe7ab445e2de80caabb298aef8a658f6d4ab)
src/svm/svm_fifo.c
src/svm/svm_fifo.h