Home
last modified time | relevance | path

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

/kernel/locking/
Dtest-ww_mutex.c481 struct reorder_lock *ll, *ln; in stress_reorder_work() local
490 ll = kmalloc(sizeof(*ll), GFP_KERNEL); in stress_reorder_work()
491 if (!ll) in stress_reorder_work()
494 ll->lock = &stress->locks[order[n]]; in stress_reorder_work()
495 list_add(&ll->link, &locks); in stress_reorder_work()
503 list_for_each_entry(ll, &locks, link) { in stress_reorder_work()
504 err = ww_mutex_lock(ll->lock, &ctx); in stress_reorder_work()
508 ln = ll; in stress_reorder_work()
518 ww_mutex_lock_slow(ll->lock, &ctx); in stress_reorder_work()
519 list_move(&ll->link, &locks); /* restarts iteration */ in stress_reorder_work()
[all …]
Dlocktorture.c406 } locks[3], *ll, *ln; in torture_ww_mutex_lock() local
420 list_for_each_entry(ll, &list, link) { in torture_ww_mutex_lock()
423 err = ww_mutex_lock(ll->lock, ctx); in torture_ww_mutex_lock()
427 ln = ll; in torture_ww_mutex_lock()
434 ww_mutex_lock_slow(ll->lock, ctx); in torture_ww_mutex_lock()
435 list_move(&ll->link, &list); in torture_ww_mutex_lock()