Add a UGAR() macro to simplify the diff's for the Giant pushdown.
This commit is contained in:
parent
27a6d44d7f
commit
55be7f3e8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82609
@ -354,6 +354,12 @@ do { \
|
||||
if (mtx_owned(&Giant)) \
|
||||
WITNESS_RESTORE(&Giant.mtx_object, Giant)
|
||||
|
||||
#define UGAR(rval) do { \
|
||||
int _val = (rval); \
|
||||
mtx_unlock(&Giant); \
|
||||
return (_val); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
* The INVARIANTS-enabled mtx_assert() functionality.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user