aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-flush.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-flush.c')
-rw-r--r--block/blk-flush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-flush.c b/block/blk-flush.c
index 3cb5e9e7108a..698e6926388c 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -202,7 +202,7 @@ static bool blk_flush_complete_seq(struct request *rq, unsigned int seq,
202 list_del_init(&rq->flush.list); 202 list_del_init(&rq->flush.list);
203 blk_flush_restore_request(rq); 203 blk_flush_restore_request(rq);
204 if (q->mq_ops) 204 if (q->mq_ops)
205 blk_mq_end_io(rq, error); 205 blk_mq_end_request(rq, error);
206 else 206 else
207 __blk_end_request_all(rq, error); 207 __blk_end_request_all(rq, error);
208 break; 208 break;
@@ -378,7 +378,7 @@ void blk_insert_flush(struct request *rq)
378 */ 378 */
379 if (!policy) { 379 if (!policy) {
380 if (q->mq_ops) 380 if (q->mq_ops)
381 blk_mq_end_io(rq, 0); 381 blk_mq_end_request(rq, 0);
382 else 382 else
383 __blk_end_bidi_request(rq, 0, 0, 0); 383 __blk_end_bidi_request(rq, 0, 0, 0);
384 return; 384 return;