summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-09-14 14:02:05 -0700
committerJens Axboe <axboe@kernel.dk>2017-09-26 07:41:22 -0600
commitaf551fb3be26a22b7a6b345b3b7e7e6acfc41758 (patch)
tree775f393998555a5b11473d3e342e817a2e4fbd7d /block/bio.c
parent05e3db95ebfc5c06a29a1d8c7a3e02f46f3a25a7 (diff)
downloadop-kernel-dev-af551fb3be26a22b7a6b345b3b7e7e6acfc41758.zip
op-kernel-dev-af551fb3be26a22b7a6b345b3b7e7e6acfc41758.tar.gz
blkcg: delete unused APIs
Nobody uses the APIs right now. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/block/bio.c b/block/bio.c
index b38e962..8338304 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -2033,37 +2033,6 @@ int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state *blkcg_css)
EXPORT_SYMBOL_GPL(bio_associate_blkcg);
/**
- * bio_associate_current - associate a bio with %current
- * @bio: target bio
- *
- * Associate @bio with %current if it hasn't been associated yet. Block
- * layer will treat @bio as if it were issued by %current no matter which
- * task actually issues it.
- *
- * This function takes an extra reference of @task's io_context and blkcg
- * which will be put when @bio is released. The caller must own @bio,
- * ensure %current->io_context exists, and is responsible for synchronizing
- * calls to this function.
- */
-int bio_associate_current(struct bio *bio)
-{
- struct io_context *ioc;
-
- if (bio->bi_css)
- return -EBUSY;
-
- ioc = current->io_context;
- if (!ioc)
- return -ENOENT;
-
- get_io_context_active(ioc);
- bio->bi_ioc = ioc;
- bio->bi_css = task_get_css(current, io_cgrp_id);
- return 0;
-}
-EXPORT_SYMBOL_GPL(bio_associate_current);
-
-/**
* bio_disassociate_task - undo bio_associate_current()
* @bio: target bio
*/
OpenPOWER on IntegriCloud