diff options
author | Shaohua Li <shli@fb.com> | 2017-09-15 00:02:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-26 16:41:22 +0300 |
commit | af551fb3be26a22b7a6b345b3b7e7e6acfc41758 (patch) | |
tree | 775f393998555a5b11473d3e342e817a2e4fbd7d /block/bio.c | |
parent | 05e3db95ebfc5c06a29a1d8c7a3e02f46f3a25a7 (diff) | |
download | linux-af551fb3be26a22b7a6b345b3b7e7e6acfc41758.tar.xz |
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.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/block/bio.c b/block/bio.c index b38e962fa83e..8338304ea256 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 */ |