diff options
author | Shaohua Li <shli@fb.com> | 2017-09-26 11:02:12 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-26 12:07:24 -0600 |
commit | 0b508bc926bdced678febee2a2b8cdba0a19e481 (patch) | |
tree | 79a143e9857e44b1d28628bf88e188cd476db650 /drivers/block | |
parent | 9979d545c93653770984806e9bfcec1df53a9d3d (diff) | |
download | linux-stable-0b508bc926bdced678febee2a2b8cdba0a19e481.tar.gz linux-stable-0b508bc926bdced678febee2a2b8cdba0a19e481.tar.bz2 linux-stable-0b508bc926bdced678febee2a2b8cdba0a19e481.zip |
block: fix a build error
The code is only for blkcg not for all cgroups
Fixes: d4478e92d618 ("block/loop: make loop cgroup aware")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index fd4eff5f5b76..bc8e61506968 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1692,7 +1692,7 @@ static blk_status_t loop_queue_rq(struct blk_mq_hw_ctx *hctx, } /* always use the first bio's css */ -#ifdef CONFIG_CGROUPS +#ifdef CONFIG_BLK_CGROUP if (cmd->use_aio && cmd->rq->bio && cmd->rq->bio->bi_css) { cmd->css = cmd->rq->bio->bi_css; css_get(cmd->css); |