Re: [PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-08 Thread Tejun Heo
Hello,

On Sat, Feb 08, 2014 at 10:17:46AM -0800, Greg KH wrote:
> On Sat, Feb 08, 2014 at 10:08:56AM -0500, Tejun Heo wrote:
> > On Sat, Feb 08, 2014 at 10:07:51AM -0500, Tejun Heo wrote:
> > > On Fri, Feb 07, 2014 at 04:12:54PM -0800, Greg KH wrote:
> > > > Ok, I should have now applied all of these, and hopefully in the correct
> > > > order.  If I got anything wrong, please let me know.
> > > 
> > > Everything looks good to me.
> > 
> > Ooh, JFYI, I'm pulling driver-core-next into cgroup for-3.15 so that
> > cgroup kernfs conversion can be put on top of it.
> 
> That's fine with me.  Do you feel kernfs is good enough now for other
> subsystems to use?  I want to port debugfs to it when ready.

API-wise, I think, or at least hope, so.  I've been running quite a
few tests with the converted cgroup and haven't found anything
critical yet, so the outlook isn't too bad.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-08 Thread Greg KH
On Sat, Feb 08, 2014 at 10:08:56AM -0500, Tejun Heo wrote:
> On Sat, Feb 08, 2014 at 10:07:51AM -0500, Tejun Heo wrote:
> > On Fri, Feb 07, 2014 at 04:12:54PM -0800, Greg KH wrote:
> > > Ok, I should have now applied all of these, and hopefully in the correct
> > > order.  If I got anything wrong, please let me know.
> > 
> > Everything looks good to me.
> 
> Ooh, JFYI, I'm pulling driver-core-next into cgroup for-3.15 so that
> cgroup kernfs conversion can be put on top of it.

That's fine with me.  Do you feel kernfs is good enough now for other
subsystems to use?  I want to port debugfs to it when ready.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-08 Thread Tejun Heo
On Fri, Feb 07, 2014 at 04:12:54PM -0800, Greg KH wrote:
> Ok, I should have now applied all of these, and hopefully in the correct
> order.  If I got anything wrong, please let me know.

Everything looks good to me.

Thanks!

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-08 Thread Tejun Heo
On Sat, Feb 08, 2014 at 10:07:51AM -0500, Tejun Heo wrote:
> On Fri, Feb 07, 2014 at 04:12:54PM -0800, Greg KH wrote:
> > Ok, I should have now applied all of these, and hopefully in the correct
> > order.  If I got anything wrong, please let me know.
> 
> Everything looks good to me.

Ooh, JFYI, I'm pulling driver-core-next into cgroup for-3.15 so that
cgroup kernfs conversion can be put on top of it.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-07 Thread Greg KH
On Fri, Feb 07, 2014 at 01:43:20PM -0500, Tejun Heo wrote:
> Hello,
> 
> On Mon, Feb 03, 2014 at 02:09:07PM -0500, Tejun Heo wrote:
> >  0001-kernfs-invoke-dir_ops-while-holding-active-ref-of-th.patch
> >  0002-kernfs-rename-kernfs_dir_ops-to-kernfs_syscall_ops.patch
> >  0003-kernfs-implement-kernfs_syscall_ops-remount_fs-and-s.patch
> >  0004-kernfs-add-missing-kernfs_active-checks-in-directory.patch
> >  0005-kernfs-allow-nodes-to-be-created-in-the-deactivated-.patch
> >  0006-kernfs-implement-kernfs_ops-atomic_write_len.patch
> >  0007-kernfs-add-kernfs_open_file-priv.patch
> >  0008-kernfs-implement-kernfs_node_from_dentry-kernfs_root.patch
> >  0009-kernfs-implement-kernfs_get_parent-kernfs_name-path-.patch
> >  0010-kernfs-add-CONFIG_KERNFS.patch
> 
> 0009 updated to v2 and a new patch added between 0009 and 0010.  Both
> are for dummy definition related issues for !CONFIG_SYSFS.  The git
> tree has been updated accordingly.

Ok, I should have now applied all of these, and hopefully in the correct
order.  If I got anything wrong, please let me know.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-07 Thread Tejun Heo
Hello,

On Mon, Feb 03, 2014 at 02:09:07PM -0500, Tejun Heo wrote:
>  0001-kernfs-invoke-dir_ops-while-holding-active-ref-of-th.patch
>  0002-kernfs-rename-kernfs_dir_ops-to-kernfs_syscall_ops.patch
>  0003-kernfs-implement-kernfs_syscall_ops-remount_fs-and-s.patch
>  0004-kernfs-add-missing-kernfs_active-checks-in-directory.patch
>  0005-kernfs-allow-nodes-to-be-created-in-the-deactivated-.patch
>  0006-kernfs-implement-kernfs_ops-atomic_write_len.patch
>  0007-kernfs-add-kernfs_open_file-priv.patch
>  0008-kernfs-implement-kernfs_node_from_dentry-kernfs_root.patch
>  0009-kernfs-implement-kernfs_get_parent-kernfs_name-path-.patch
>  0010-kernfs-add-CONFIG_KERNFS.patch

0009 updated to v2 and a new patch added between 0009 and 0010.  Both
are for dummy definition related issues for !CONFIG_SYSFS.  The git
tree has been updated accordingly.

Thanks!

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCHSET v2 driver-core-next] kernfs: prepare for cgroup's kernfs conversion

2014-02-03 Thread Tejun Heo
Hello,

This patchset makes various updates in preparation of cgroup's kernfs
conversion.  Changes from the last take[L] are

* Refreshed on top of v3.14-rc1.

* 0010-kernfs-add-CONFIG_KERNFS.patch added.

This patchset contains the following 10 patches.

 0001-kernfs-invoke-dir_ops-while-holding-active-ref-of-th.patch
 0002-kernfs-rename-kernfs_dir_ops-to-kernfs_syscall_ops.patch
 0003-kernfs-implement-kernfs_syscall_ops-remount_fs-and-s.patch
 0004-kernfs-add-missing-kernfs_active-checks-in-directory.patch
 0005-kernfs-allow-nodes-to-be-created-in-the-deactivated-.patch
 0006-kernfs-implement-kernfs_ops-atomic_write_len.patch
 0007-kernfs-add-kernfs_open_file-priv.patch
 0008-kernfs-implement-kernfs_node_from_dentry-kernfs_root.patch
 0009-kernfs-implement-kernfs_get_parent-kernfs_name-path-.patch
 0010-kernfs-add-CONFIG_KERNFS.patch

 0001-0003 update kernfs_dir_ops for active ref protection, add
 additional syscall operations and rename the struct to
 kernfs_syscall_ops.

 0004-0005 implement an option to create new kernfs_nodes in
 deactivated state so that multiple nodes can be made visible
 atomically or removed without ever being visible to userland.

 0006 implements kernfs_ops->atomic_write_len which will be used to
 support cgroup cftype->max_write_len.

 0007 adds kernfs_open_file->priv.

 0008-0009 add various helpers and accessors.

 0010 adds CONFIG_KERNFS so that kernfs can be selected independently
 from sysfs.

This patchset is on top of

  v3.14-rc1 38dbfb59d117
+ [1] [PATCHSET v5 driver-core-next] kernfs, sysfs, driver-core: implement 
synchronous self-removal

diffstat follows.

 fs/Kconfig |1 
 fs/Makefile|3 
 fs/kernfs/Kconfig  |7 +
 fs/kernfs/dir.c|  325 -
 fs/kernfs/file.c   |   49 ---
 fs/kernfs/mount.c  |   37 +
 fs/sysfs/Kconfig   |1 
 fs/sysfs/dir.c |   44 +-
 fs/sysfs/mount.c   |2 
 include/linux/kernfs.h |   90 +++--
 10 files changed, 460 insertions(+), 99 deletions(-)

Thanks!

--
tejun

[L] http://lkml.kernel.org/g/1390951971-15671-1-git-send-email...@kernel.org
[1] http://lkml.kernel.org/g/1391454185-32143-1-git-send-email...@kernel.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/