Print this page
8115 parallel zfs mount

*** 9,18 **** --- 9,19 ---- * http://www.illumos.org/license/CDDL. */ /* * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + * Copyright 2017 RackTop Systems. */ /* * mutex(9f) */
*** 49,59 **** { mp->m_owner = _KTHREAD_INVALID; } void ! mutex_enter(kmutex_t *mp) { VERIFY(0 == _lwp_mutex_lock(&mp->m_lock)); mp->m_owner = _curthread(); } --- 50,60 ---- { mp->m_owner = _KTHREAD_INVALID; } void ! kmutex_enter(kmutex_t *mp) { VERIFY(0 == _lwp_mutex_lock(&mp->m_lock)); mp->m_owner = _curthread(); }
*** 69,79 **** } return (0); } void ! mutex_exit(kmutex_t *mp) { ASSERT(mp->m_owner == _curthread()); mp->m_owner = _KTHREAD_INVALID; (void) _lwp_mutex_unlock(&mp->m_lock); } --- 70,80 ---- } return (0); } void ! kmutex_exit(kmutex_t *mp) { ASSERT(mp->m_owner == _curthread()); mp->m_owner = _KTHREAD_INVALID; (void) _lwp_mutex_unlock(&mp->m_lock); }