aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-09-12 06:08:27 -0400
committerJens Axboe <jaxboe@fusionio.com>2011-09-12 06:08:27 -0400
commit166e1f901b01872e8b70733a3f2e2c6980389cf8 (patch)
treebb0a52bfe76e60bb430cd6a5f91ceb9b6ecaa7b2 /block
parent484fc254b88257a2d8b3759aa062e8e8b35e0988 (diff)
block: export __make_request
Avoid the hacks need for request based device mappers currently by simply exporting the symbol instead of trying to get it through the back door. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index b627558c461f..56ef387e7d27 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -38,8 +38,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio_remap);
38EXPORT_TRACEPOINT_SYMBOL_GPL(block_rq_remap); 38EXPORT_TRACEPOINT_SYMBOL_GPL(block_rq_remap);
39EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio_complete); 39EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio_complete);
40 40
41static int __make_request(struct request_queue *q, struct bio *bio);
42
43/* 41/*
44 * For the allocated request tables 42 * For the allocated request tables
45 */ 43 */
@@ -1213,7 +1211,7 @@ void init_request_from_bio(struct request *req, struct bio *bio)
1213 blk_rq_bio_prep(req->q, req, bio); 1211 blk_rq_bio_prep(req->q, req, bio);
1214} 1212}
1215 1213
1216static int __make_request(struct request_queue *q, struct bio *bio) 1214int __make_request(struct request_queue *q, struct bio *bio)
1217{ 1215{
1218 const bool sync = !!(bio->bi_rw & REQ_SYNC); 1216 const bool sync = !!(bio->bi_rw & REQ_SYNC);
1219 struct blk_plug *plug; 1217 struct blk_plug *plug;
@@ -1317,6 +1315,7 @@ out_unlock:
1317out: 1315out:
1318 return 0; 1316 return 0;
1319} 1317}
1318EXPORT_SYMBOL_GPL(__make_request); /* for device mapper only */
1320 1319
1321/* 1320/*
1322 * If bio->bi_dev is a partition, remap the location 1321 * If bio->bi_dev is a partition, remap the location