commit | 6cd0fc56c0a2cb8fdf897f49f013f86dc698d793 | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Sat Feb 18 21:51:04 2017 -0800 |
committer | Jesse Hall <jessehall@google.com> | Wed Mar 08 17:34:14 2017 -0800 |
tree | 95b08eab695324bf4b9ba22c3940857ff74e5097 | |
parent | dec150ff58e0c48fc96c9e0222bda6c2afd23869 [diff] |
sync: Cache knowledge of kernel uapi version Previously all libsync calls would try first the modern/mainline uapi and if that failed try the legacy uapi, or vice versa. This is inefficient, and confusing when looking at strace. With this change, after the first successful syscall, libsync know's what uapi version the kernel supports, and will only try that version in the future. Test: sync-unit-tests on bullhead Change-Id: I8b5de0194da0cfc6c080c0180318e16bb673d3c9