summaryrefslogtreecommitdiff
path: root/include/linux/dynamic_queue_limits.h
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2016-01-28 12:02:14 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:10:06 -0700
commit5e8b41f531999e322d91cd9804691f92c38a0745 (patch)
tree78c28798f3aaceaa807058b2407304aa7f9d6dbd /include/linux/dynamic_queue_limits.h
parent5cd572ca8d3474613d4562e1e9cb533c8ba65842 (diff)
USB: f_fs: Add memory barrier before atomic operations
In few instances, it is observed that multiple adbd instances are running on device causing condition BUG_ON(ffs->gadget) to be true. ffs->opened and ffs->ref atomic variables are used here to make decision for checking ffs->gadget. These atomic variable operations requires expilict memory barrier to make sure that update to ffs->gadget is visible to other CPUs before updated atomic variable based value is seen. This change also adds explicit memory barriers before reading or modified any atomic varaiables. Change-Id: I3c846eb6bbb53663892e05d51ebac8439aac957a Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Diffstat (limited to 'include/linux/dynamic_queue_limits.h')
0 files changed, 0 insertions, 0 deletions