aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 7a4c40184a64..8b3b74e69184 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -956,8 +956,6 @@ EXPORT_SYMBOL(blk_make_request);
956 */ 956 */
957void blk_requeue_request(struct request_queue *q, struct request *rq) 957void blk_requeue_request(struct request_queue *q, struct request *rq)
958{ 958{
959 BUG_ON(blk_queued_rq(rq));
960
961 blk_delete_timer(rq); 959 blk_delete_timer(rq);
962 blk_clear_rq_complete(rq); 960 blk_clear_rq_complete(rq);
963 trace_block_rq_requeue(q, rq); 961 trace_block_rq_requeue(q, rq);
@@ -965,6 +963,8 @@ void blk_requeue_request(struct request_queue *q, struct request *rq)
965 if (blk_rq_tagged(rq)) 963 if (blk_rq_tagged(rq))
966 blk_queue_end_tag(q, rq); 964 blk_queue_end_tag(q, rq);
967 965
966 BUG_ON(blk_queued_rq(rq));
967
968 elv_requeue_request(q, rq); 968 elv_requeue_request(q, rq);
969} 969}
970EXPORT_SYMBOL(blk_requeue_request); 970EXPORT_SYMBOL(blk_requeue_request);
@@ -2042,11 +2042,11 @@ static bool blk_update_bidi_request(struct request *rq, int error,
2042 */ 2042 */
2043static void blk_finish_request(struct request *req, int error) 2043static void blk_finish_request(struct request *req, int error)
2044{ 2044{
2045 BUG_ON(blk_queued_rq(req));
2046
2047 if (blk_rq_tagged(req)) 2045 if (blk_rq_tagged(req))
2048 blk_queue_end_tag(req->q, req); 2046 blk_queue_end_tag(req->q, req);
2049 2047
2048 BUG_ON(blk_queued_rq(req));
2049
2050 if (unlikely(laptop_mode) && blk_fs_request(req)) 2050 if (unlikely(laptop_mode) && blk_fs_request(req))
2051 laptop_io_completion(); 2051 laptop_io_completion();
2052 2052