Commit 5034435c authored by Damien Le Moal's avatar Damien Le Moal Committed by Jens Axboe

block: Make blk_dequeue_request() static

The only caller of this function is blk_start_request() in the same
file. Fix blk_start_request() description accordingly.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6fd5b91d
...@@ -2615,7 +2615,7 @@ struct request *blk_peek_request(struct request_queue *q) ...@@ -2615,7 +2615,7 @@ struct request *blk_peek_request(struct request_queue *q)
} }
EXPORT_SYMBOL(blk_peek_request); EXPORT_SYMBOL(blk_peek_request);
void blk_dequeue_request(struct request *rq) static void blk_dequeue_request(struct request *rq)
{ {
struct request_queue *q = rq->q; struct request_queue *q = rq->q;
...@@ -2642,9 +2642,6 @@ void blk_dequeue_request(struct request *rq) ...@@ -2642,9 +2642,6 @@ void blk_dequeue_request(struct request *rq)
* Description: * Description:
* Dequeue @req and start timeout timer on it. This hands off the * Dequeue @req and start timeout timer on it. This hands off the
* request to the driver. * request to the driver.
*
* Block internal functions which don't want to start timer should
* call blk_dequeue_request().
*/ */
void blk_start_request(struct request *req) void blk_start_request(struct request *req)
{ {
......
...@@ -64,7 +64,6 @@ void blk_rq_bio_prep(struct request_queue *q, struct request *rq, ...@@ -64,7 +64,6 @@ void blk_rq_bio_prep(struct request_queue *q, struct request *rq,
struct bio *bio); struct bio *bio);
void blk_queue_bypass_start(struct request_queue *q); void blk_queue_bypass_start(struct request_queue *q);
void blk_queue_bypass_end(struct request_queue *q); void blk_queue_bypass_end(struct request_queue *q);
void blk_dequeue_request(struct request *rq);
void __blk_queue_free_tags(struct request_queue *q); void __blk_queue_free_tags(struct request_queue *q);
void blk_freeze_queue(struct request_queue *q); void blk_freeze_queue(struct request_queue *q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment