diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-05-17 11:57:15 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-19 06:14:56 -0400 |
commit | 79eb63e9e5875b84341a3a05f8e6ae9cdb4bb6f6 (patch) | |
tree | bdadc2037c1d0f24c6c73b71ae82fdd7b907e610 /include/linux | |
parent | bc38bf106c967389a465d926be22c7371abba69d (diff) |
block: Add blk_make_request(), takes bio, returns a request
New block API:
given a struct bio allocates a new request. This is the parallel of
generic_make_request for BLOCK_PC commands users.
The passed bio may be a chained-bio. The bio is bounced if needed
inside the call to this member.
This is in the effort of un-exporting blk_rq_append_bio().
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
CC: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f9d60a78c08a..88a83e112c95 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -740,6 +740,8 @@ extern void blk_rq_init(struct request_queue *q, struct request *rq); | |||
740 | extern void blk_put_request(struct request *); | 740 | extern void blk_put_request(struct request *); |
741 | extern void __blk_put_request(struct request_queue *, struct request *); | 741 | extern void __blk_put_request(struct request_queue *, struct request *); |
742 | extern struct request *blk_get_request(struct request_queue *, int, gfp_t); | 742 | extern struct request *blk_get_request(struct request_queue *, int, gfp_t); |
743 | extern struct request *blk_make_request(struct request_queue *, struct bio *, | ||
744 | gfp_t); | ||
743 | extern void blk_insert_request(struct request_queue *, struct request *, int, void *); | 745 | extern void blk_insert_request(struct request_queue *, struct request *, int, void *); |
744 | extern void blk_requeue_request(struct request_queue *, struct request *); | 746 | extern void blk_requeue_request(struct request_queue *, struct request *); |
745 | extern int blk_rq_check_limits(struct request_queue *q, struct request *rq); | 747 | extern int blk_rq_check_limits(struct request_queue *q, struct request *rq); |