diff --git a/sys/geom/geom.h b/sys/geom/geom.h index c93053a1d5f9..35255e8de71c 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -310,6 +310,8 @@ extern struct sx topology_lock; sx_xlock(&topology_lock); \ } while (0) +#define g_topology_try_lock() sx_try_xlock(&topology_lock) + #define g_topology_unlock() \ do { \ sx_xunlock(&topology_lock); \