HomeFreeBSD

Remove condition variable names

Description

Remove condition variable names

Long ago I added support to the spl for condition variable names
because I thought they might be needed. It turns out they aren't.
In fact the official Solaris cv_init(9F) man page discourages
their use in the kernel.

cv_init(9F)
  Parameters
    name - Descriptive string. This is obsolete and should be
           NULL. (Non-NULL strings are legal, but they're a
           waste of kernel memory.)

Therefore, I'm removing them from the spl to reclaim this memory
and adding an ASSERT() to ensure no new consumers are added which
make use of the name.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 6 2012, 6:29 PM
Parents
rG8920c6918a98: SPL 0.6.0-rc8
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb29012b99994: Remove condition variable names (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Apr 6 2012, 7:06 PM