Disable adaptive mutexs by default (always sleep), and while

I'm at it add a module option for easy tuning.


git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@109 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo 2008-05-15 17:32:41 +00:00
parent 4efd41189a
commit 56f9245330
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@
* -1: Spin until aquired or holder yeilds without dropping lock * -1: Spin until aquired or holder yeilds without dropping lock
* 1-MAX_INT: Spin for N attempts before sleeping for lock * 1-MAX_INT: Spin for N attempts before sleeping for lock
*/ */
int mutex_spin_max = 100; int mutex_spin_max = 0;
#ifdef DEBUG_MUTEX #ifdef DEBUG_MUTEX
int mutex_stats[MUTEX_STATS_SIZE] = { 0 }; int mutex_stats[MUTEX_STATS_SIZE] = { 0 };
@ -272,3 +272,5 @@ spl_mutex_fini(void)
EXIT; EXIT;
} }
module_param(mutex_spin_max, int, 0644);
MODULE_PARM_DESC(mutex_spin_max, "Spin a maximum of N times to aquire lock");