diff options
author | andre <andre@FreeBSD.org> | 2007-05-11 20:52:47 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2007-05-11 20:52:47 +0000 |
commit | 14d6d7db44ab4d0393510d32ce6e0df269dd27e6 (patch) | |
tree | 503b36d9340c08dafb82fe89daaf7d1e4cc1fa5f /sys/sys/callout.h | |
parent | a968d55db329f3cf22701c6c0cebc11db78c7e96 (diff) | |
download | FreeBSD-src-14d6d7db44ab4d0393510d32ce6e0df269dd27e6.zip FreeBSD-src-14d6d7db44ab4d0393510d32ce6e0df269dd27e6.tar.gz |
Make the TCP timer callout obtain Giant if the network stack is marked
as non-mpsafe.
This change is to be removed when all protocols are mp-safe.
Diffstat (limited to 'sys/sys/callout.h')
-rw-r--r-- | sys/sys/callout.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/callout.h b/sys/sys/callout.h index a554562..a8c7a28 100644 --- a/sys/sys/callout.h +++ b/sys/sys/callout.h @@ -62,6 +62,7 @@ struct callout { #define CALLOUT_PENDING 0x0004 /* callout is waiting for timeout */ #define CALLOUT_MPSAFE 0x0008 /* callout handler is mp safe */ #define CALLOUT_RETURNUNLOCKED 0x0010 /* handler returns with mtx unlocked */ +#define CALLOUT_NETGIANT 0x0020 /* XXX: obtain Giant before mutex */ struct callout_handle { struct callout *callout; |