Thread (4 messages) 4 messages, 3 authors, 2014-02-14

Re: [PATCH] kernfs: fix kernfs_node_from_dentry()

From: Tejun Heo <hidden>
Date: 2014-02-14 16:03:08
Also in: lkml

On Fri, Feb 14, 2014 at 04:57:27PM +0800, Li Zefan wrote:
Currently kernfs_node_from_dentry() returns NULL for root dentry,
because root_dentry->d_op == NULL.

Due to this bug cgroupstats_build() returns -EINVAL for root cgroup.

  # mount -t cgroup -o cpuacct /cgroup
  # Documentation/accounting/getdelays -C /cgroup
  fatal reply error,  errno -22

With this fix:

  # Documentation/accounting/getdelays -C /cgroup
  sleeping 305, blocked 0, running 1, stopped 0, uninterruptible 1

Signed-off-by: Li Zefan <redacted>
Acked-by: Tejun Heo <redacted>

Thanks!

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help