OSDN Git Service

Set alarm's queue to NULL on alarm expired
authorKamal Negi <kamaln@codeaurora.org>
Mon, 19 Sep 2016 08:46:56 +0000 (14:16 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 20 Jan 2017 21:29:01 +0000 (21:29 +0000)
commita8215323a1e6f21c8442943f68f8fbe59a3f9ba6
treeadc7590f846c8aaae16b864ecfaade0b4cf7a8de
parentb0014dae415dba4e658cc1b0da3be96317f5cdf4
Set alarm's queue to NULL on alarm expired

Use Case: Repeated BT ON/OFF

Failure: ANR due to race condition between random advertisement
address generation completion(adv_raddr_timer) and BT shutdown.

Steps: SNS Stress testing.

Root Cause: Race condition happens between random advertisement
address generation completion(adv_raddr_timer) and BT shutdown.

Fix:  For non-periodic alarms, set alarm's queue to NULL once alarm
expired.

Test: mm -j8

Change-Id: Idf8e2bebdc2ca7621aef06dd5f2075ef2c5fa08c
osi/src/alarm.cc