commit | 85d678c0bee883c63b760b35a4104feac9018a0f | [log] [tgz] |
---|---|---|
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | Tue Jul 28 18:34:36 2015 +0100 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Tue Jul 28 14:50:02 2015 -0700 |
tree | 72d37243e53ea2d87bab0def4fb053c17203b124 | |
parent | a7e60062b022d1ce1104610d0b0c37322aeb66b6 [diff] |
greybus: loopback: make loopback code thread safe Current code allows a sysfs callback and a kernel worker thread to write all over and act upon data that could be in the process of being updated by the other. This patch adds a reasonably coarse mutex to enscure sync between the two. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>