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
* -1: Spin until aquired or holder yeilds without dropping 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
int mutex_stats[MUTEX_STATS_SIZE] = { 0 };
EXIT;
}
+module_param(mutex_spin_max, int, 0644);
+MODULE_PARM_DESC(mutex_spin_max, "Spin a maximum of N times to aquire lock");