diff options
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index f2b292925ccd..4e595ee8c915 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -247,9 +247,7 @@ static inline int blkg_path(struct blkcg_gq *blkg, char *buf, int buflen) | |||
247 | { | 247 | { |
248 | int ret; | 248 | int ret; |
249 | 249 | ||
250 | rcu_read_lock(); | ||
251 | ret = cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); | 250 | ret = cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); |
252 | rcu_read_unlock(); | ||
253 | if (ret) | 251 | if (ret) |
254 | strncpy(buf, "<unavailable>", buflen); | 252 | strncpy(buf, "<unavailable>", buflen); |
255 | return ret; | 253 | return ret; |