aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-05-20 14:36:16 -0400
committerJens Axboe <jaxboe@fusionio.com>2011-05-20 14:36:16 -0400
commit0eb8e885726a3a93206510092bbc7e39e272f6ef (patch)
treed866a663df8d7d0f6a405d7eba45d889c12ba8bb /block
parentaf75cd3c67845ebe31d2df9a780889a5ebecef11 (diff)
parent0a58e077eb600d1efd7e54ad9926a75a39d7f8ae (diff)
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
Diffstat (limited to 'block')
-rw-r--r--block/blk.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h
index 1f798b5a6f19..d6586287adc9 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -61,6 +61,7 @@ static inline struct request *__elv_next_request(struct request_queue *q)
61 rq = list_entry_rq(q->queue_head.next); 61 rq = list_entry_rq(q->queue_head.next);
62 return rq; 62 return rq;
63 } 63 }
64
64 /* 65 /*
65 * Flush request is running and flush request isn't queueable 66 * Flush request is running and flush request isn't queueable
66 * in the drive, we can hold the queue till flush request is 67 * 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 q->flush_queue_delayed = 1; 82 q->flush_queue_delayed = 1;
82 return NULL; 83 return NULL;
83 } 84 }
84 if (!q->elevator->ops->elevator_dispatch_fn(q, 0)) 85 if (test_bit(QUEUE_FLAG_DEAD, &q->queue_flags) ||
86 !q->elevator->ops->elevator_dispatch_fn(q, 0))
85 return NULL; 87 return NULL;
86 } 88 }
87} 89}