Skip to content
Commit 8529091e authored by Josh Triplett's avatar Josh Triplett Committed by Linus Torvalds
Browse files

linux/compiler.h: add __must_hold macro for functions called with a lock held



linux/compiler.h has macros to denote functions that acquire or release
locks, but not to denote functions called with a lock held that return
with the lock still held.  Add a __must_hold macro to cover that case.

Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Reported-by: default avatarEd Cashin <ecashin@coraid.com>
Tested-by: default avatarEd Cashin <ecashin@coraid.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a5ba911e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment