Skip to content

Commit

Permalink
Merge branch 'for-linus' into for-2.6.40/core
Browse files Browse the repository at this point in the history
This patch merges in a fix that missed 2.6.39 final.

Conflicts:
	block/blk.h
  • Loading branch information
Jens Axboe committed May 20, 2011
2 parents af75cd3 + 0a58e07 commit 0eb8e88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion block/blk.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ static inline struct request *__elv_next_request(struct request_queue *q)
rq = list_entry_rq(q->queue_head.next);
return rq;
}

/*
* Flush request is running and flush request isn't queueable
* in the drive, we can hold the queue till flush request is
Expand All @@ -81,7 +82,8 @@ static inline struct request *__elv_next_request(struct request_queue *q)
q->flush_queue_delayed = 1;
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;
}
}
Expand Down

0 comments on commit 0eb8e88

Please sign in to comment.