Skip to content

Commit

Permalink
[PATCH] stop cfq from pinning queue down
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 18, 2006
1 parent d9ff418 commit 25975f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2121,13 +2121,10 @@ static void cfq_shutdown_timer_wq(struct cfq_data *cfqd)

static void cfq_put_cfqd(struct cfq_data *cfqd)
{
request_queue_t *q = cfqd->queue;

if (!atomic_dec_and_test(&cfqd->ref))
return;

cfq_shutdown_timer_wq(cfqd);
blk_put_queue(q);

mempool_destroy(cfqd->crq_pool);
kfree(cfqd->crq_hash);
Expand Down Expand Up @@ -2205,7 +2202,6 @@ 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 25975f8

Please sign in to comment.