Home
last modified time | relevance | path

Searched refs:nlocks (Results 1 – 1 of 1) sorted by relevance

/kernel/locking/
Dtest-ww_mutex.c386 int nlocks; member
421 const int nlocks = stress->nlocks; in stress_inorder_work() local
426 order = get_random_order(nlocks); in stress_inorder_work()
437 for (n = 0; n < nlocks; n++) { in stress_inorder_work()
485 order = get_random_order(stress->nlocks); in stress_reorder_work()
489 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()
538 const int nlocks = stress->nlocks; in stress_one_work() local
539 struct ww_mutex *lock = stress->locks + prandom_u32_max(nlocks); in stress_one_work()
560 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
566 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
[all …]