diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-04-29 03:54:36 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-04-29 08:48:55 -0400 |
commit | 2a4aa30c5f967eb6ae874c67fa6fceeee84815f9 (patch) | |
tree | fddd67e3b3697874e2a19c0e8e194190957b0e1e /include | |
parent | 992b5bceee447a32ef2d617730ae0d03c063eedd (diff) |
block: rename and export rq_init()
This rename rq_init() blk_rq_init() and export it. Any path that hands
the request to the block layer needs to call it to initialize the
request.
This is a preparation for large command support, which needs to
initialize the request in a proper way (that is, just doing a memset()
will not work).
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 8ca481cd7d73..d17032c347c0 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -607,6 +607,7 @@ extern int blk_register_queue(struct gendisk *disk); | |||
607 | extern void blk_unregister_queue(struct gendisk *disk); | 607 | extern void blk_unregister_queue(struct gendisk *disk); |
608 | extern void register_disk(struct gendisk *dev); | 608 | extern void register_disk(struct gendisk *dev); |
609 | extern void generic_make_request(struct bio *bio); | 609 | extern void generic_make_request(struct bio *bio); |
610 | extern void blk_rq_init(struct request_queue *q, struct request *rq); | ||
610 | extern void blk_put_request(struct request *); | 611 | extern void blk_put_request(struct request *); |
611 | extern void __blk_put_request(struct request_queue *, struct request *); | 612 | extern void __blk_put_request(struct request_queue *, struct request *); |
612 | extern void blk_end_sync_rq(struct request *rq, int error); | 613 | extern void blk_end_sync_rq(struct request *rq, int error); |