block: remove blk_complete_request()
authorJens Axboe <axboe@kernel.dk>
Mon, 22 Oct 2018 11:12:32 +0000 (05:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:42:32 +0000 (13:42 -0700)
It's now unused.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-softirq.c
include/linux/blkdev.h

index e47a2f751884ddb7821fededef643693db752393..8ca0f6caf174c253e5186b31d891cfa40d878177 100644 (file)
@@ -145,26 +145,6 @@ do_local:
 }
 EXPORT_SYMBOL(__blk_complete_request);
 
-/**
- * blk_complete_request - end I/O on a request
- * @req:      the request being processed
- *
- * Description:
- *     Ends all I/O on a request. It does not handle partial completions,
- *     unless the driver actually implements this in its completion callback
- *     through requeueing. The actual completion happens out-of-order,
- *     through a softirq handler. The user must have registered a completion
- *     callback through blk_queue_softirq_done().
- **/
-void blk_complete_request(struct request *req)
-{
-       if (unlikely(blk_should_fake_timeout(req->q)))
-               return;
-       if (!blk_mark_rq_complete(req))
-               __blk_complete_request(req);
-}
-EXPORT_SYMBOL(blk_complete_request);
-
 static __init int blk_softirq_init(void)
 {
        int i;
index e867733b761d5a5dbde7992b5f34976d8bc5eec0..6baea65633642ec0e430cb85ee036ee1bc9b6e2a 100644 (file)
@@ -1203,7 +1203,6 @@ extern bool __blk_end_request(struct request *rq, blk_status_t error,
 extern void __blk_end_request_all(struct request *rq, blk_status_t error);
 extern bool __blk_end_request_cur(struct request *rq, blk_status_t error);
 
-extern void blk_complete_request(struct request *);
 extern void __blk_complete_request(struct request *);
 extern void blk_abort_request(struct request *);
 extern void blk_unprep_request(struct request *);