aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2014-09-18 10:49:37 -0700
committerMark Brown <broonie@kernel.org>2014-09-18 10:49:37 -0700
commite55574f93ecb78dac5a15f29d18f2ab4dbc813bc (patch)
treeffce30ba6d6a11b3fdc5ebd28e5f3cca2d87d12c /block
parent9ea00e4fa07ce46ab79c92087c72ae100de4de42 (diff)
parentd831fd1b46d04e5c8c8a0431c321578d25852695 (diff)
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-rtlsk-v3.10-rt-14.09
Diffstat (limited to 'block')
-rw-r--r--block/blk-cgroup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index b95219d2168d..1ff8e97f853a 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -883,6 +883,13 @@ void blkcg_drain_queue(struct request_queue *q)
if (!q->root_blkg)
return;
+ /*
+ * @q could be exiting and already have destroyed all blkgs as
+ * indicated by NULL root_blkg. If so, don't confuse policies.
+ */
+ if (!q->root_blkg)
+ return;
+
blk_throtl_drain(q);
}