• Home
  • Raw
  • Download

Lines Matching refs:err

161 	int err;  in test_abba_work()  local
169 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
170 if (abba->resolve && err == -EDEADLK) { in test_abba_work()
173 err = ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work()
176 if (!err) in test_abba_work()
181 abba->result = err; in test_abba_work()
188 int err, ret; in test_abba() local
205 err = ww_mutex_lock(&abba.b_mutex, &ctx); in test_abba()
206 if (resolve && err == -EDEADLK) { in test_abba()
209 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
212 if (!err) in test_abba()
222 if (err || abba.result) { in test_abba()
224 __func__, err, abba.result); in test_abba()
228 if (err != -EDEADLK && abba.result != -EDEADLK) { in test_abba()
230 __func__, err, abba.result); in test_abba()
250 int err, erra = 0; in test_cycle_work() local
258 err = ww_mutex_lock(cycle->b_mutex, &ctx); in test_cycle_work()
259 if (err == -EDEADLK) { in test_cycle_work()
260 err = 0; in test_cycle_work()
266 if (!err) in test_cycle_work()
272 cycle->result = err ?: erra; in test_cycle_work()
392 int n, err; in stress_inorder_work() local
396 err = 0; in stress_inorder_work()
401 err = ww_mutex_lock(&locks[order[n]], &ctx); in stress_inorder_work()
402 if (err < 0) in stress_inorder_work()
405 if (!err) in stress_inorder_work()
414 if (err == -EDEADLK) { in stress_inorder_work()
419 if (err) { in stress_inorder_work()
421 __func__, err); in stress_inorder_work()
443 int n, err; in stress_reorder_work() local
464 err = ww_mutex_lock(ll->lock, &ctx); in stress_reorder_work()
465 if (!err) in stress_reorder_work()
472 if (err != -EDEADLK) { in stress_reorder_work()
474 __func__, err); in stress_reorder_work()
500 int err; in stress_one_work() local
503 err = ww_mutex_lock(lock, NULL); in stress_one_work()
504 if (!err) { in stress_one_work()
509 __func__, err); in stress_one_work()