diff options
| author | Amir Samuelov <amirs@codeaurora.org> | 2017-07-05 13:23:29 +0300 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-07-06 08:39:02 -0700 |
| commit | 5459f66ad2a383bb51255b04cc65169b73a21fb0 (patch) | |
| tree | b81d1ce4bce6103a567039e15221a2fafd890f43 /tools/perf/scripts/python | |
| parent | b4d55be4153c4cff9aaaa0f69dfbcff922e4c46c (diff) | |
spcom: avoid race condition when handling commands
The spcom allows only one owner per channel, so only one app can open()
a channel char device at a time.
However, the channel owner process might share the channel file
descriptor (fd) with other threads, that might write() concurrently
a command to spcom, that can cause a race.
Add a mutex to "serialize" handling of the commands.
Change-Id: Ief9c6c48a862444dfff66d14d2317568cd6e81e6
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
