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
Loading
Please register or sign in to comment