Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359511
b: refs/heads/master
c: 689665a
h: refs/heads/master
i:
  359509: 066c399
  359507: 242ac29
  359503: a52298c
v: v3
  • Loading branch information
Tejun Heo committed Jan 9, 2013
1 parent 616a075 commit 90aebcc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 810ecfa765f8be20c8d9c468885b3403a2232d2f
refs/heads/master: 689665af4489f779bc82e7869509c9ac11b5a903
13 changes: 9 additions & 4 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,11 +688,9 @@ static inline void cfqg_stats_update_completion(struct cfq_group *cfqg,
io_start_time - start_time);
}

static void cfq_pd_reset_stats(struct blkcg_gq *blkg)
/* @stats = 0 */
static void cfqg_stats_reset(struct cfqg_stats *stats)
{
struct cfq_group *cfqg = blkg_to_cfqg(blkg);
struct cfqg_stats *stats = &cfqg->stats;

/* queued stats shouldn't be cleared */
blkg_rwstat_reset(&stats->service_bytes);
blkg_rwstat_reset(&stats->serviced);
Expand Down Expand Up @@ -1477,6 +1475,13 @@ static void cfq_pd_init(struct blkcg_gq *blkg)
cfqg->leaf_weight = blkg->blkcg->cfq_leaf_weight;
}

static void cfq_pd_reset_stats(struct blkcg_gq *blkg)
{
struct cfq_group *cfqg = blkg_to_cfqg(blkg);

cfqg_stats_reset(&cfqg->stats);
}

/*
* Search for the cfq group current task belongs to. request_queue lock must
* be held.
Expand Down

0 comments on commit 90aebcc

Please sign in to comment.