commit | eca342559a61a74c7f5f8f8035eec0311043914c | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Feb 11 13:08:37 2020 +0000 |
committer | Narayan Kamath <narayan@google.com> | Tue Feb 11 13:55:49 2020 +0000 |
tree | 47d906960bfc76e80b20962cfb97b47c00f03c47 | |
parent | 45fc6cb012d14bd300454dc48d7fa559177cedb7 [diff] |
FuseDaemon: Make Acquire atomic with Lookup. Otherwise, we will suffer from race conditions caused by the following sequence of events on racing threads T1 and T2. T1: p2 = LookupChildByName(p1); T2: p2->Release() -> delete p2 (if refcount_ == 0); T1: p2->Acquire() Test: atest fuse_node_test Test: fs-stress run for 14 hours with no errors. Bug: 148709965 Change-Id: Ic3f2e78e386e523966b69c45320a59b8f2f77f91