Commit 0eb8e885 authored by Jens Axboe's avatar Jens Axboe

Merge branch 'for-linus' into for-2.6.40/core

This patch merges in a fix that missed 2.6.39 final.

Conflicts:
	block/blk.h
parents af75cd3c 0a58e077
...@@ -61,6 +61,7 @@ static inline struct request *__elv_next_request(struct request_queue *q) ...@@ -61,6 +61,7 @@ static inline struct request *__elv_next_request(struct request_queue *q)
rq = list_entry_rq(q->queue_head.next); rq = list_entry_rq(q->queue_head.next);
return rq; return rq;
} }
/* /*
* Flush request is running and flush request isn't queueable * Flush request is running and flush request isn't queueable
* in the drive, we can hold the queue till flush request is * in the drive, we can hold the queue till flush request is
...@@ -81,7 +82,8 @@ static inline struct request *__elv_next_request(struct request_queue *q) ...@@ -81,7 +82,8 @@ static inline struct request *__elv_next_request(struct request_queue *q)
q->flush_queue_delayed = 1; q->flush_queue_delayed = 1;
return NULL; return NULL;
} }
if (!q->elevator->ops->elevator_dispatch_fn(q, 0)) if (test_bit(QUEUE_FLAG_DEAD, &q->queue_flags) ||
!q->elevator->ops->elevator_dispatch_fn(q, 0))
return NULL; return NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment