Include an annotation of NET_{LOCK,UNLOCK}_GIANT() noting that these

calls do not have the same recursion semantics as DROP_GIANT and
PICKUP_GIANT.
This commit is contained in:
Robert Watson 2004-06-20 21:49:12 +00:00
parent cce9682e55
commit 7372ef9a11

View File

@ -350,7 +350,10 @@ do { \
* without special recursion handling.
*
* This mechanism is intended as temporary until everything of
* importance is properly locked.
* importance is properly locked. Note: the semantics for
* NET_{LOCK,UNLOCK}_GIANT() are not the same as DROP_GIANT()
* and PICKUP_GIANT(), as they are plain mutex operations
* without a recursion counter.
*/
extern int debug_mpsafenet; /* defined in net/netisr.c */
#define NET_LOCK_GIANT() do { \