Skip to content
Commit 178f3f75 authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

rpmsg: smd: Don't hold the tx lock during wait



Holding the tx lock while waiting for tx-drain events from the remote
side blocks try_send requests from failing quickly, so temporarily drop
the tx lock while waiting.

While this allows try_send to fail quickly it also could allow a
subsequent send to succeed putting a smaller packet in the FIFO while
we're waiting for room for our large packet. But as this lock is per
channel we expect that clients with ordering concerns implements their
own ordering mechanism.

Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent b2c932e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment