diff options
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index e9754dc98ec4..775c8516abf5 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -38,7 +38,7 @@ static int __make_request(struct request_queue *q, struct bio *bio); | |||
38 | /* | 38 | /* |
39 | * For the allocated request tables | 39 | * For the allocated request tables |
40 | */ | 40 | */ |
41 | struct kmem_cache *request_cachep; | 41 | static struct kmem_cache *request_cachep; |
42 | 42 | ||
43 | /* | 43 | /* |
44 | * For queue allocation | 44 | * For queue allocation |
@@ -127,6 +127,7 @@ void rq_init(struct request_queue *q, struct request *rq) | |||
127 | rq->nr_hw_segments = 0; | 127 | rq->nr_hw_segments = 0; |
128 | rq->ioprio = 0; | 128 | rq->ioprio = 0; |
129 | rq->special = NULL; | 129 | rq->special = NULL; |
130 | rq->raw_data_len = 0; | ||
130 | rq->buffer = NULL; | 131 | rq->buffer = NULL; |
131 | rq->tag = -1; | 132 | rq->tag = -1; |
132 | rq->errors = 0; | 133 | rq->errors = 0; |
@@ -2015,6 +2016,7 @@ void blk_rq_bio_prep(struct request_queue *q, struct request *rq, | |||
2015 | rq->hard_cur_sectors = rq->current_nr_sectors; | 2016 | rq->hard_cur_sectors = rq->current_nr_sectors; |
2016 | rq->hard_nr_sectors = rq->nr_sectors = bio_sectors(bio); | 2017 | rq->hard_nr_sectors = rq->nr_sectors = bio_sectors(bio); |
2017 | rq->buffer = bio_data(bio); | 2018 | rq->buffer = bio_data(bio); |
2019 | rq->raw_data_len = bio->bi_size; | ||
2018 | rq->data_len = bio->bi_size; | 2020 | rq->data_len = bio->bi_size; |
2019 | 2021 | ||
2020 | rq->bio = rq->biotail = bio; | 2022 | rq->bio = rq->biotail = bio; |