diff options
author | Brian Behlendorf <[email protected]> | 2012-11-05 09:04:50 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-11-06 14:48:55 -0800 |
commit | d2733258d09b02fac76af0df9921e369d33e9642 (patch) | |
tree | 13f867e4b937e51448565b0cada51bca3088637b /include/spl-trace.h | |
parent | 87efc30b270454a372e18f236491b4f0e5bcc30d (diff) |
Condition variable reference counts
Reference count every entry and exit from the condition variable
functions: cv_wait(), cv_wait_timeout(), cv_signal(), cv_broadcast().
This allows us to safely block in cv_destroy() until all consumers
have been scheduled and are no longer accessing the condition
variable memory.
In addition poison the magic value at the start of cv_destroy() to
ensure there are never any new callers after cv_destroy() is called.
The consumer is responsible for ensuring this never occurs.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/spl-trace.h')
0 files changed, 0 insertions, 0 deletions