diff options
Diffstat (limited to 'block/blk-flush.c')
-rw-r--r-- | block/blk-flush.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-flush.c b/block/blk-flush.c index a867e3f524f3..1e2aa8a8908c 100644 --- a/block/blk-flush.c +++ b/block/blk-flush.c | |||
@@ -264,10 +264,9 @@ static bool blk_kick_flush(struct request_queue *q) | |||
264 | static void flush_data_end_io(struct request *rq, int error) | 264 | static void flush_data_end_io(struct request *rq, int error) |
265 | { | 265 | { |
266 | struct request_queue *q = rq->q; | 266 | struct request_queue *q = rq->q; |
267 | bool was_empty = elv_queue_empty(q); | ||
268 | 267 | ||
269 | /* after populating an empty queue, kick it to avoid stall */ | 268 | /* after populating an empty queue, kick it to avoid stall */ |
270 | if (blk_flush_complete_seq(rq, REQ_FSEQ_DATA, error) && was_empty) | 269 | if (blk_flush_complete_seq(rq, REQ_FSEQ_DATA, error)) |
271 | __blk_run_queue(q); | 270 | __blk_run_queue(q); |
272 | } | 271 | } |
273 | 272 | ||