Skip to content

Commit

Permalink
cfq-iosched: Remove bogus check in queue_fail path
Browse files Browse the repository at this point in the history
queue_fail can only be reached if cic is NULL, so its check for cic must
be bogus.

Signed-off-by: Paul Bolle <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
pebolle authored and Jens Axboe committed Jun 2, 2011
1 parent 4c49ff3 commit 28304f4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3786,9 +3786,6 @@ cfq_set_request(struct request_queue *q, struct request *rq, gfp_t gfp_mask)
return 0;

queue_fail:
if (cic)
put_io_context(cic->ioc);

cfq_schedule_dispatch(cfqd);
spin_unlock_irqrestore(q->queue_lock, flags);
cfq_log(cfqd, "set_request fail");
Expand Down

0 comments on commit 28304f4

Please sign in to comment.