1 --- linux-2.6.39.noarch/block/elevator.c~ 2011-08-09 10:07:41.532774872 -0400
2 +++ linux-2.6.39.noarch/block/elevator.c 2011-08-09 10:07:56.131724173 -0400
3 @@ -815,7 +815,7 @@ void elv_completed_request(struct reques
5 if (blk_account_rq(rq)) {
6 q->in_flight[rq_is_sync(rq)]--;
7 - if ((rq->cmd_flags & REQ_SORTED) &&
8 + if ((rq->cmd_flags & REQ_SORTED) && e->ops &&
9 e->ops->elevator_completed_req_fn)
10 e->ops->elevator_completed_req_fn(q, rq);