diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-09-12 06:08:27 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-09-12 06:08:27 -0400 |
commit | 166e1f901b01872e8b70733a3f2e2c6980389cf8 (patch) | |
tree | bb0a52bfe76e60bb430cd6a5f91ceb9b6ecaa7b2 /block | |
parent | 484fc254b88257a2d8b3759aa062e8e8b35e0988 (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.c | 5 |
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); | |||
38 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_rq_remap); | 38 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_rq_remap); |
39 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio_complete); | 39 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio_complete); |
40 | 40 | ||
41 | static 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 | ||
1216 | static int __make_request(struct request_queue *q, struct bio *bio) | 1214 | int __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: | |||
1317 | out: | 1315 | out: |
1318 | return 0; | 1316 | return 0; |
1319 | } | 1317 | } |
1318 | EXPORT_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 |