[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140214160301.GE31544@htj.dyndns.org>
Date: Fri, 14 Feb 2014 11:03:01 -0500
From: Tejun Heo <tj@...nel.org>
To: Li Zefan <lizefan@...wei.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Cgroups <cgroups@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kernfs: fix kernfs_node_from_dentry()
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 <lizefan@...wei.com>
Acked-by: Tejun Heo <tj@...nel.org>
Thanks!
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists