commit | 300d9cb1a827eb72ed61d7db438ae59c57e5ecc0 | [log] [tgz] |
---|---|---|
author | Sudheer Shanka <sudheersai@google.com> | Thu Jun 04 23:33:13 2020 -0700 |
committer | Sudheer Shanka <sudheersai@google.com> | Thu Jun 04 23:58:30 2020 -0700 |
tree | 40042ecf28b0b7b8a245baeb76fa4eddc08d902f | |
parent | edcb2c38f4a06fbc4fe786e3a5f441d0ef69b55c [diff] |
Move RevocableFileDescriptor creation outside the locked section. If creating the RevocableFileDescriptor while holding the lock gets stuck, it could crash the system. So, take it out of of the locked section. Also, close the underlying fd if RevocableFileDescriptor creation fails. Bug: 157535024 Test: atest --test-mapping apex/blobstore Change-Id: I9948307f7e5cdaa1ac886531cf6e67f5a7dd0547