diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-barrier.c | 9 | ||||
-rw-r--r-- | block/blk-core.c | 2 | ||||
-rw-r--r-- | block/elevator.c | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/block/blk-barrier.c b/block/blk-barrier.c index 20b4111fa050..c8d087655eff 100644 --- a/block/blk-barrier.c +++ b/block/blk-barrier.c | |||
@@ -106,10 +106,7 @@ bool blk_ordered_complete_seq(struct request_queue *q, unsigned seq, int error) | |||
106 | */ | 106 | */ |
107 | q->ordseq = 0; | 107 | q->ordseq = 0; |
108 | rq = q->orig_bar_rq; | 108 | rq = q->orig_bar_rq; |
109 | 109 | __blk_end_request_all(rq, q->orderr); | |
110 | if (__blk_end_request(rq, q->orderr, blk_rq_bytes(rq))) | ||
111 | BUG(); | ||
112 | |||
113 | return true; | 110 | return true; |
114 | } | 111 | } |
115 | 112 | ||
@@ -252,9 +249,7 @@ bool blk_do_ordered(struct request_queue *q, struct request **rqp) | |||
252 | * with prejudice. | 249 | * with prejudice. |
253 | */ | 250 | */ |
254 | elv_dequeue_request(q, rq); | 251 | elv_dequeue_request(q, rq); |
255 | if (__blk_end_request(rq, -EOPNOTSUPP, | 252 | __blk_end_request_all(rq, -EOPNOTSUPP); |
256 | blk_rq_bytes(rq))) | ||
257 | BUG(); | ||
258 | *rqp = NULL; | 253 | *rqp = NULL; |
259 | return false; | 254 | return false; |
260 | } | 255 | } |
diff --git a/block/blk-core.c b/block/blk-core.c index b84250d3019b..0520cc704585 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1780,7 +1780,7 @@ struct request *elv_next_request(struct request_queue *q) | |||
1780 | break; | 1780 | break; |
1781 | } else if (ret == BLKPREP_KILL) { | 1781 | } else if (ret == BLKPREP_KILL) { |
1782 | rq->cmd_flags |= REQ_QUIET; | 1782 | rq->cmd_flags |= REQ_QUIET; |
1783 | __blk_end_request(rq, -EIO, blk_rq_bytes(rq)); | 1783 | __blk_end_request_all(rq, -EIO); |
1784 | } else { | 1784 | } else { |
1785 | printk(KERN_ERR "%s: bad return=%d\n", __func__, ret); | 1785 | printk(KERN_ERR "%s: bad return=%d\n", __func__, ret); |
1786 | break; | 1786 | break; |
diff --git a/block/elevator.c b/block/elevator.c index b03b8752e18b..1af5d9f04aff 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -810,7 +810,7 @@ void elv_abort_queue(struct request_queue *q) | |||
810 | rq = list_entry_rq(q->queue_head.next); | 810 | rq = list_entry_rq(q->queue_head.next); |
811 | rq->cmd_flags |= REQ_QUIET; | 811 | rq->cmd_flags |= REQ_QUIET; |
812 | trace_block_rq_abort(q, rq); | 812 | trace_block_rq_abort(q, rq); |
813 | __blk_end_request(rq, -EIO, blk_rq_bytes(rq)); | 813 | __blk_end_request_all(rq, -EIO); |
814 | } | 814 | } |
815 | } | 815 | } |
816 | EXPORT_SYMBOL(elv_abort_queue); | 816 | EXPORT_SYMBOL(elv_abort_queue); |