commit | e67794f40a9b0c79c0addc8f11c24b693a1280f6 | [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 | 8d009532b7f96de1f03a22acb61ce6f0c46a18d1 [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