]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - block/blk-cgroup.c
GFS2: Don't call file_accessed() with a shared glock
[karo-tx-linux.git] / block / blk-cgroup.c
index f3b44a65fc7ad5f127bee8bcbadf5b486a7e5c71..54f35d1c07a94a16ab0293cb4abb45074ea10d06 100644 (file)
@@ -285,6 +285,13 @@ static void blkg_destroy_all(struct request_queue *q)
                blkg_destroy(blkg);
                spin_unlock(&blkcg->lock);
        }
+
+       /*
+        * root blkg is destroyed.  Just clear the pointer since
+        * root_rl does not take reference on root blkg.
+        */
+       q->root_blkg = NULL;
+       q->root_rl.blkg = NULL;
 }
 
 static void blkg_rcu_free(struct rcu_head *rcu_head)