]> git.proxmox.com Git - mirror_spl.git/commit - module/splat/splat-condvar.c
Remove condition variable names
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Apr 2012 18:29:23 +0000 (11:29 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Apr 2012 19:06:19 +0000 (12:06 -0700)
commitb29012b99994ece46019b664d67dace29e5c2586
tree8a06ed6dd8441212d654ec6b940bef953c4cc879
parent8920c6918a984a9624c853460fe00e9a200bbd48
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>
include/sys/condvar.h
module/spl/spl-condvar.c
module/splat/splat-condvar.c