rpmsg: serialize concurrent access to svq buffers
authorTyler Luu <tluu@ti.com>
Mon, 25 Jul 2011 15:15:09 +0000 (10:15 -0500)
committerCris Jansson <cjansson@ti.com>
Mon, 29 Aug 2011 23:45:01 +0000 (18:45 -0500)
commit975a8f9c4741ceae7ef9e67103c53b7a3894e1eb
tree7afcbbc539ab8e8b3edc879392a9d176868f202c
parent5eb4a47a62cf17516e19131bac844f2f6851da24
rpmsg: serialize concurrent access to svq buffers

Accessing of svq buffers also needs to be protected with mutex. Race condition
could occur with threads grabbing a buffer from the queue simultaneously.
virtio_ring does not provide protection against this and expects driver to do
so.

Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
drivers/rpmsg/virtio_rpmsg_bus.c