summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-09-26 11:02:12 -0700
committerJens Axboe <axboe@kernel.dk>2017-09-26 12:07:24 -0600
commit0b508bc926bdced678febee2a2b8cdba0a19e481 (patch)
tree79a143e9857e44b1d28628bf88e188cd476db650 /drivers/block
parent9979d545c93653770984806e9bfcec1df53a9d3d (diff)
downloadop-kernel-dev-0b508bc926bdced678febee2a2b8cdba0a19e481.zip
op-kernel-dev-0b508bc926bdced678febee2a2b8cdba0a19e481.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index fd4eff5f..bc8e615 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);
OpenPOWER on IntegriCloud