Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vars: have variable accessors return an error if the context is done
The efivarfs kernel driver rate limits variable reads per-user, so supporting cancellation / deadlines can be useful for functions that make multiple use of variable accessors, such as ReadOrderedLoadOptionVariables or ComputeSecureBootMode. A future commit will make the efivarfs backend implement VarsBackend2 and plumb the context through for variable writes, which currently makes use of a retry loop to handle races with other processes that change the inode immutability flag, where cancellation will be more useful.
- Loading branch information