mtx: retire PARTIAL_PICKUP_GIANT

It does not appear to have ever been used.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2022-12-11 03:26:23 +00:00
parent ebdf27b6f3
commit bc2ccf0e4f

View File

@ -509,16 +509,13 @@ do { \
}
#define PICKUP_GIANT() \
PARTIAL_PICKUP_GIANT(); \
} while (0)
#define PARTIAL_PICKUP_GIANT() \
mtx_assert(&Giant, MA_NOTOWNED); \
if (__predict_false(_giantcnt > 0)) { \
while (_giantcnt--) \
mtx_lock(&Giant); \
WITNESS_RESTORE(&Giant.lock_object, Giant); \
}
} \
} while (0)
#endif
struct mtx_args {