Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8425
b: refs/heads/master
c: 3579713
h: refs/heads/master
i:
  8423: 7c3a6dd
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Sep 10, 2005
1 parent cb51c28 commit 6dfa575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31139971b3dc9fbb2e8a8572fb81e6e8470f363a
refs/heads/master: 35797132b311b3b7d4add48393b0a03f3566cbc1
3 changes: 3 additions & 0 deletions trunk/drivers/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2260,6 +2260,8 @@ static void cfq_put_cfqd(struct cfq_data *cfqd)
if (!atomic_dec_and_test(&cfqd->ref))
return;

blk_put_queue(q);

cfq_shutdown_timer_wq(cfqd);
q->elevator->elevator_data = NULL;

Expand Down Expand Up @@ -2316,6 +2318,7 @@ static int cfq_init_queue(request_queue_t *q, elevator_t *e)
e->elevator_data = cfqd;

cfqd->queue = q;
atomic_inc(&q->refcnt);

cfqd->max_queued = q->nr_requests / 4;
q->nr_batching = cfq_queued;
Expand Down

0 comments on commit 6dfa575

Please sign in to comment.