Lines Matching refs:err

192 	int err;  in test_abba_work()  local
205 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
206 if (abba->resolve && err == -EDEADLK) { in test_abba_work()
209 err = ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work()
212 if (!err) in test_abba_work()
217 abba->result = err; in test_abba_work()
224 int err, ret; in test_abba() local
247 err = ww_mutex_lock(&abba.b_mutex, &ctx); in test_abba()
248 if (resolve && err == -EDEADLK) { in test_abba()
251 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
254 if (!err) in test_abba()
264 if (err || abba.result) { in test_abba()
266 __func__, err, abba.result); in test_abba()
270 if (err != -EDEADLK && abba.result != -EDEADLK) { in test_abba()
272 __func__, err, abba.result); in test_abba()
292 int err, erra = 0; in test_cycle_work() local
300 err = ww_mutex_lock(cycle->b_mutex, &ctx); in test_cycle_work()
301 if (err == -EDEADLK) { in test_cycle_work()
302 err = 0; in test_cycle_work()
308 if (!err) in test_cycle_work()
314 cycle->result = err ?: erra; in test_cycle_work()
444 int n, err; in stress_inorder_work() local
448 err = 0; in stress_inorder_work()
453 err = ww_mutex_lock(&locks[order[n]], &ctx); in stress_inorder_work()
454 if (err < 0) in stress_inorder_work()
457 if (!err) in stress_inorder_work()
466 if (err == -EDEADLK) { in stress_inorder_work()
474 if (err) { in stress_inorder_work()
476 __func__, err); in stress_inorder_work()
496 int n, err; in stress_reorder_work() local
517 err = ww_mutex_lock(ll->lock, &ctx); in stress_reorder_work()
518 if (!err) in stress_reorder_work()
525 if (err != -EDEADLK) { in stress_reorder_work()
527 __func__, err); in stress_reorder_work()
553 int err; in stress_one_work() local
556 err = ww_mutex_lock(lock, NULL); in stress_one_work()
557 if (!err) { in stress_one_work()
562 __func__, err); in stress_one_work()