commit | c8313adf883f6c0d74718dbc4603adacd62ec16b | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Mon Apr 20 17:38:17 2020 +0100 |
committer | Nikita Ioffe <ioffe@google.com> | Mon Apr 20 17:38:17 2020 +0100 |
tree | 66ce90af3724ee2ebffd8a5502aed826a187098f | |
parent | 8ee349bdbd75f8d92fbe25ebd9d7a96979da852b [diff] |
PrepareZramBackingDevice: use loop_control.h loop_control.h already provides loop device management APIs that we need here. In addition, this change fixes a subtle race condition between uevented creating a loop device node in userspace and PrepareZramBackingDevice accessing it without waiting for it to be created. Test: device boots Test: adb reboot userspace Bug: 154500256 Change-Id: If80f18c8c337210030a6caf2aec6f7a47472b6fb