platform_system_core/libappfuse/include/libappfuse
hyeeun.jun@samsung.com 612fc47090 Fix Deadlock Issue On AppFuseBridge
There are two locks used by AppFuseBridge.
First is it's object lock, and the second is a mutex lock in app fuse library.
There are two oppsite routines to get those locks.

  (Thread A) Got Java lock -> Try to get Native lock
  (Thread B)        Got Native lock -> Try to get Java lock

The order must be followed to obtain two locks.
If not, the dead lock will be caused.
Therefore we change the routine to get the mutex lock first, and the object lock later.

Signed-off-by: hyeeun.jun@samsung.com <hyeeun.jun@samsung.com>
Bug: https://issuetracker.google.com/issues/145707568
Bug: 157535024
Test: atest --test-mapping apex/blobstore

Change-Id: I0ab002da9a0b7ca2f518d50ab477a080cabe3788
2020-06-17 13:39:21 +01:00
..
EpollController.h Enable FuseBridgeLoop to accept new mount point after starting 2017-03-23 16:22:03 +09:00
FuseAppLoop.h Change FuseAppLoop so that it can process messages asynchronously. 2017-03-27 14:46:58 +09:00
FuseBridgeLoop.h Fix Deadlock Issue On AppFuseBridge 2020-06-17 13:39:21 +01:00
FuseBuffer.h Stop using SO_SNDBUFFORCE 2018-03-15 14:22:27 +09:00