Commit 3a211b71 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

blk-core: Remove blk_end_request*() declarations

Commit a1ce35fa ("block: remove dead elevator code")
deleted blk_end_request() and friends, but some declaration are still
left. Purge them.
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 243d9f78
...@@ -1348,7 +1348,7 @@ EXPORT_SYMBOL_GPL(blk_steal_bios); ...@@ -1348,7 +1348,7 @@ EXPORT_SYMBOL_GPL(blk_steal_bios);
* *
* This special helper function is only for request stacking drivers * This special helper function is only for request stacking drivers
* (e.g. request-based dm) so that they can handle partial completion. * (e.g. request-based dm) so that they can handle partial completion.
* Actual device drivers should use blk_end_request instead. * Actual device drivers should use blk_mq_end_request instead.
* *
* Passing the result of blk_rq_bytes() as @nr_bytes guarantees * Passing the result of blk_rq_bytes() as @nr_bytes guarantees
* %false return from this function. * %false return from this function.
......
...@@ -1026,21 +1026,9 @@ void blk_steal_bios(struct bio_list *list, struct request *rq); ...@@ -1026,21 +1026,9 @@ void blk_steal_bios(struct bio_list *list, struct request *rq);
* *
* blk_update_request() completes given number of bytes and updates * blk_update_request() completes given number of bytes and updates
* the request without completing it. * the request without completing it.
*
* blk_end_request() and friends. __blk_end_request() must be called
* with the request queue spinlock acquired.
*
* Several drivers define their own end_request and call
* blk_end_request() for parts of the original function.
* This prevents code duplication in drivers.
*/ */
extern bool blk_update_request(struct request *rq, blk_status_t error, extern bool blk_update_request(struct request *rq, blk_status_t error,
unsigned int nr_bytes); unsigned int nr_bytes);
extern void blk_end_request_all(struct request *rq, blk_status_t error);
extern bool __blk_end_request(struct request *rq, blk_status_t error,
unsigned int nr_bytes);
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_abort_request(struct request *);
......
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