• Home
  • Raw
  • Download

Lines Matching refs:err

190 	int err;  in test_abba_work()  local
203 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
204 if (abba->resolve && err == -EDEADLK) { in test_abba_work()
207 err = ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work()
210 if (!err) in test_abba_work()
215 abba->result = err; in test_abba_work()
222 int err, ret; in test_abba() local
245 err = ww_mutex_lock(&abba.b_mutex, &ctx); in test_abba()
246 if (resolve && err == -EDEADLK) { in test_abba()
249 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
252 if (!err) in test_abba()
262 if (err || abba.result) { in test_abba()
264 __func__, err, abba.result); in test_abba()
268 if (err != -EDEADLK && abba.result != -EDEADLK) { in test_abba()
270 __func__, err, abba.result); in test_abba()
290 int err, erra = 0; in test_cycle_work() local
298 err = ww_mutex_lock(cycle->b_mutex, &ctx); in test_cycle_work()
299 if (err == -EDEADLK) { in test_cycle_work()
300 err = 0; in test_cycle_work()
306 if (!err) in test_cycle_work()
312 cycle->result = err ?: erra; in test_cycle_work()
432 int n, err; in stress_inorder_work() local
436 err = 0; in stress_inorder_work()
441 err = ww_mutex_lock(&locks[order[n]], &ctx); in stress_inorder_work()
442 if (err < 0) in stress_inorder_work()
445 if (!err) in stress_inorder_work()
454 if (err == -EDEADLK) { in stress_inorder_work()
459 if (err) { in stress_inorder_work()
461 __func__, err); in stress_inorder_work()
483 int n, err; in stress_reorder_work() local
504 err = ww_mutex_lock(ll->lock, &ctx); in stress_reorder_work()
505 if (!err) in stress_reorder_work()
512 if (err != -EDEADLK) { in stress_reorder_work()
514 __func__, err); in stress_reorder_work()
540 int err; in stress_one_work() local
543 err = ww_mutex_lock(lock, NULL); in stress_one_work()
544 if (!err) { in stress_one_work()
549 __func__, err); in stress_one_work()