summaryrefslogtreecommitdiffstats
path: root/drivers/block/ll_rw_blk.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-06-20 14:05:27 +0200
committerJens Axboe <axboe@suse.de>2005-06-20 14:05:27 +0200
commitb823825e8e09aac6dc1ca362cd5639a87329d636 (patch)
treef825aa09e088c160d50f2b9e878a287ebf2cb304 /drivers/block/ll_rw_blk.c
parent[PATCH] Add blk_rq_map_kern() (diff)
downloadlinux-b823825e8e09aac6dc1ca362cd5639a87329d636.tar.xz
linux-b823825e8e09aac6dc1ca362cd5639a87329d636.zip
[PATCH] Keep the bio end_io parts inside of bio.c for blk_rq_map_kern()
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/block/ll_rw_blk.c')
-rw-r--r--drivers/block/ll_rw_blk.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index e30a3c93b70c..1471aca6fa18 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -2177,16 +2177,6 @@ int blk_rq_unmap_user(struct request *rq, struct bio *bio, unsigned int ulen)
EXPORT_SYMBOL(blk_rq_unmap_user);
-static int blk_rq_map_kern_endio(struct bio *bio, unsigned int bytes_done,
- int error)
-{
- if (bio->bi_size)
- return 1;
-
- bio_put(bio);
- return 0;
-}
-
/**
* blk_rq_map_kern - map kernel data to a request, for REQ_BLOCK_PC usage
* @q: request queue where request should be inserted
@@ -2213,7 +2203,6 @@ struct request *blk_rq_map_kern(request_queue_t *q, int rw, void *kbuf,
if (!IS_ERR(bio)) {
if (rw)
bio->bi_rw |= (1 << BIO_RW);
- bio->bi_end_io = blk_rq_map_kern_endio;
rq->bio = rq->biotail = bio;
blk_rq_bio_prep(q, rq, bio);