forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Without this, one could implement a lock that doesn't really provide mutual exclusion, which could result in UB. For example, a no-op `Lock` implementation could provide guards from two different threads concurrently, which could be used by `LockedBy` to generate two mutable references to the same underlying object. Marking `Lock` unsafe has no implication on driver code because all implementations are expected to come from the `kernel` crate anyway. Signed-off-by: Wedson Almeida Filho <[email protected]>
- Loading branch information
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters