diff options
author | tomee <none@none> | 2008-05-26 17:53:26 -0700 |
---|---|---|
committer | tomee <none@none> | 2008-05-26 17:53:26 -0700 |
commit | b5fca8f855054d167d04d3b4de5210c83ed2083c (patch) | |
tree | 6b4e690195757449698c233ae276ae53b52a9c9b /usr/src/uts/common/os/mutex.c | |
parent | 7568150a58e78021968b6c22bc28e9787b33496a (diff) | |
download | illumos-joyent-b5fca8f855054d167d04d3b4de5210c83ed2083c.tar.gz |
6554564 slab allocator cannot release slabs with lonely buffers
6676406 kmem client constructors and destructors need some cleanup
Diffstat (limited to 'usr/src/uts/common/os/mutex.c')
-rw-r--r-- | usr/src/uts/common/os/mutex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/os/mutex.c b/usr/src/uts/common/os/mutex.c index a6a19c869e..f812aeb6bc 100644 --- a/usr/src/uts/common/os/mutex.c +++ b/usr/src/uts/common/os/mutex.c @@ -529,9 +529,9 @@ mutex_vector_exit(mutex_impl_t *lp) } int -mutex_owned(kmutex_t *mp) +mutex_owned(const kmutex_t *mp) { - mutex_impl_t *lp = (mutex_impl_t *)mp; + const mutex_impl_t *lp = (const mutex_impl_t *)mp; if (panicstr) return (1); @@ -542,9 +542,9 @@ mutex_owned(kmutex_t *mp) } kthread_t * -mutex_owner(kmutex_t *mp) +mutex_owner(const kmutex_t *mp) { - mutex_impl_t *lp = (mutex_impl_t *)mp; + const mutex_impl_t *lp = (const mutex_impl_t *)mp; kthread_id_t t; if (MUTEX_TYPE_ADAPTIVE(lp) && (t = MUTEX_OWNER(lp)) != MUTEX_NO_OWNER) |