Revision ab006391

View differences:

nest/locks.c
70 70
	  DBG("olock: -> %p becomes locked\n", n);
71 71
	  q = SKIP_BACK(struct object_lock, n, n);
72 72
	  rem_node(n);
73
	  add_tail_list(&l->waiters, &q->waiters);
73
	  add_tail_list(&q->waiters, &l->waiters);
74 74
	  q->state = OLOCK_STATE_EVENT;
75 75
	  add_head(&olock_list, n);
76 76
	  ev_schedule(olock_event);

Also available in: Unified diff