Lines Matching refs:ll
495 struct reorder_lock *ll, *ln; in stress_reorder_work() local
504 ll = kmalloc(sizeof(*ll), GFP_KERNEL); in stress_reorder_work()
505 if (!ll) in stress_reorder_work()
508 ll->lock = &stress->locks[order[n]]; in stress_reorder_work()
509 list_add(&ll->link, &locks); in stress_reorder_work()
517 list_for_each_entry(ll, &locks, link) { in stress_reorder_work()
518 err = ww_mutex_lock(ll->lock, &ctx); in stress_reorder_work()
522 ln = ll; in stress_reorder_work()
532 ww_mutex_lock_slow(ll->lock, &ctx); in stress_reorder_work()
533 list_move(&ll->link, &locks); /* restarts iteration */ in stress_reorder_work()
537 list_for_each_entry(ll, &locks, link) in stress_reorder_work()
538 ww_mutex_unlock(ll->lock); in stress_reorder_work()
544 list_for_each_entry_safe(ll, ln, &locks, link) in stress_reorder_work()
545 kfree(ll); in stress_reorder_work()