aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2009-05-17 11:57:15 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-05-19 06:14:56 -0400
commit79eb63e9e5875b84341a3a05f8e6ae9cdb4bb6f6 (patch)
treebdadc2037c1d0f24c6c73b71ae82fdd7b907e610 /include/linux
parentbc38bf106c967389a465d926be22c7371abba69d (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.h2
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);
740extern void blk_put_request(struct request *); 740extern void blk_put_request(struct request *);
741extern void __blk_put_request(struct request_queue *, struct request *); 741extern void __blk_put_request(struct request_queue *, struct request *);
742extern struct request *blk_get_request(struct request_queue *, int, gfp_t); 742extern struct request *blk_get_request(struct request_queue *, int, gfp_t);
743extern struct request *blk_make_request(struct request_queue *, struct bio *,
744 gfp_t);
743extern void blk_insert_request(struct request_queue *, struct request *, int, void *); 745extern void blk_insert_request(struct request_queue *, struct request *, int, void *);
744extern void blk_requeue_request(struct request_queue *, struct request *); 746extern void blk_requeue_request(struct request_queue *, struct request *);
745extern int blk_rq_check_limits(struct request_queue *q, struct request *rq); 747extern int blk_rq_check_limits(struct request_queue *q, struct request *rq);