|
@@ -2260,8 +2260,6 @@ static void cfq_put_cfqd(struct cfq_data *cfqd)
|
|
if (!atomic_dec_and_test(&cfqd->ref))
|
|
if (!atomic_dec_and_test(&cfqd->ref))
|
|
return;
|
|
return;
|
|
|
|
|
|
- blk_put_queue(q);
|
|
|
|
-
|
|
|
|
cfq_shutdown_timer_wq(cfqd);
|
|
cfq_shutdown_timer_wq(cfqd);
|
|
q->elevator->elevator_data = NULL;
|
|
q->elevator->elevator_data = NULL;
|
|
|
|
|
|
@@ -2318,7 +2316,6 @@ static int cfq_init_queue(request_queue_t *q, elevator_t *e)
|
|
e->elevator_data = cfqd;
|
|
e->elevator_data = cfqd;
|
|
|
|
|
|
cfqd->queue = q;
|
|
cfqd->queue = q;
|
|
- atomic_inc(&q->refcnt);
|
|
|
|
|
|
|
|
cfqd->max_queued = q->nr_requests / 4;
|
|
cfqd->max_queued = q->nr_requests / 4;
|
|
q->nr_batching = cfq_queued;
|
|
q->nr_batching = cfq_queued;
|