diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-11-01 20:33:45 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-11-01 20:33:45 -0400 |
commit | 67beae707582e23c61d987c57ecb8545d8dabfe1 (patch) | |
tree | a1ff6d1bce9677e1d37d713283a4acc5e1fd8b8b | |
parent | 2b8b9c348e9928c2a0d29ee78d589ee2e1334558 (diff) |
Moved blocking flag calculation into will_acquire.
-rw-r--r-- | litmus/dgl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/litmus/dgl.c b/litmus/dgl.c index 82a5e0b0e62c..364588265909 100644 --- a/litmus/dgl.c +++ b/litmus/dgl.c | |||
@@ -586,6 +586,8 @@ static void waiting_to_will_acquire(struct dgl *dgl, struct dgl_group_req *greq) | |||
586 | BUG_DUMP(dgl, resource->goal_free < 0); | 586 | BUG_DUMP(dgl, resource->goal_free < 0); |
587 | 587 | ||
588 | add_acquired(dgl, &resource->will_acquire, our_req); | 588 | add_acquired(dgl, &resource->will_acquire, our_req); |
589 | set_bit_value(b, &greq->blocked[w], | ||
590 | resource->real_free < our_req->replicas); | ||
589 | update_prio(dgl, resource); | 591 | update_prio(dgl, resource); |
590 | } | 592 | } |
591 | } | 593 | } |
@@ -760,6 +762,7 @@ void remove_group_req(struct dgl *dgl, struct dgl_group_req *greq) | |||
760 | 762 | ||
761 | --dgl->requests; | 763 | --dgl->requests; |
762 | 764 | ||
765 | /* TODO: these updates should be able to move up */ | ||
763 | if (has_prio) { | 766 | if (has_prio) { |
764 | for_each_resource(greq->requested, dgl, w, b, i) { | 767 | for_each_resource(greq->requested, dgl, w, b, i) { |
765 | update_prio(dgl, &dgl->resources[i]); | 768 | update_prio(dgl, &dgl->resources[i]); |