Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3944d87b authored by Chris Lew's avatar Chris Lew
Browse files

net: qrtr: Rearrange tx wait and protect critical section



Check tx wait conditions before entering wait. This helps threads with
pending signals finish their tx's instead of returning ERESTARTSYS.

Make checking the flow count and subsequent waiter operations an atomic
operation. The waiter list and flow count are modified on the tx and rx
threads which opens it to race conditions.

Change-Id: I7cba0e70d8e1760ed2d8cece6404b995721bdcc9
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent f70ca804
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment