LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 00/13] Support follow_link in RCU-walk. - V2
Date: Mon, 16 Mar 2015 15:43:19 +1100	[thread overview]
Message-ID: <20150316043602.23648.52734.stgit@notabene.brown> (raw)

Hi Al,
 I believe this series addresses all your concerns about
 my first attempt.
 The first patch results in nameidata being almost completely
 localized to namei.c :-)  It also highlights out-of-date
 documentation in automount-support.txt :-(

 It also exposes (and removes) some ... interesting code in lustre.
 I'm not sure how safe it is to remove that.... I didn't think
 recursive symlinks used extra stack.

 I haven't tested extensively yet but will do that before a "final"
 submission.

 If you could confirm that I'm moving in the right direction, I would
 appreciate it.

Thanks,
NeilBrown


---

NeilBrown (13):
      VFS: replace {,total_}link_count in task_struct with pointer to nameidata
      VFS: make all ->follow_link handlers aware for LOOKUP_RCU
      VFS: remove nameidata args from ->follow_link and ->put_link
      security/selinux: check for LOOKUP_RCU in _follow_link.
      VFS/namei: use terminate_walk when symlink lookup fails.
      VFS/namei: new flag to support RCU symlinks: LOOKUP_LINK_RCU.
      VFS/namei: abort RCU-walk on symlink if atime needs updating.
      VFS/namei: enhance follow_link to support RCU-walk.
      VFS/namei: enable RCU-walk when following symlinks.
      VFS/namei: handle LOOKUP_RCU in page_follow_link_light.
      xfs: use RCU to free 'struct xfs_mount'.
      XFS: allow follow_link to often succeed in RCU-walk.
      NFS: support LOOKUP_RCU in nfs_follow_link.


 Documentation/filesystems/Locking               |    4 
 Documentation/filesystems/automount-support.txt |    3 
 Documentation/filesystems/porting               |    5 +
 Documentation/filesystems/vfs.txt               |    4 
 drivers/staging/lustre/lustre/llite/symlink.c   |   25 +--
 fs/9p/v9fs.h                                    |    3 
 fs/9p/vfs_inode.c                               |   17 +-
 fs/9p/vfs_inode_dotl.c                          |   11 +
 fs/autofs4/symlink.c                            |    4 
 fs/befs/linuxvfs.c                              |   14 +-
 fs/ceph/inode.c                                 |    4 
 fs/cifs/cifsfs.h                                |    2 
 fs/cifs/link.c                                  |    6 -
 fs/configfs/symlink.c                           |   16 +-
 fs/debugfs/file.c                               |    4 
 fs/ecryptfs/inode.c                             |   13 +
 fs/exofs/symlink.c                              |    4 
 fs/ext2/symlink.c                               |    4 
 fs/ext3/symlink.c                               |    4 
 fs/ext4/symlink.c                               |    4 
 fs/freevxfs/vxfs_immed.c                        |    8 -
 fs/fuse/dir.c                                   |   10 +
 fs/gfs2/inode.c                                 |   10 +
 fs/hostfs/hostfs_kern.c                         |   15 +-
 fs/hppfs/hppfs.c                                |    9 -
 fs/inode.c                                      |   26 ++-
 fs/jffs2/symlink.c                              |    6 -
 fs/jfs/symlink.c                                |    4 
 fs/kernfs/symlink.c                             |   16 +-
 fs/libfs.c                                      |    5 -
 fs/namei.c                                      |  214 +++++++++++++++--------
 fs/nfs/inode.c                                  |   22 ++
 fs/nfs/symlink.c                                |   24 ++-
 fs/ntfs/namei.c                                 |    1 
 fs/overlayfs/inode.c                            |   13 +
 fs/proc/base.c                                  |    6 -
 fs/proc/inode.c                                 |    6 -
 fs/proc/namespaces.c                            |    7 +
 fs/proc/self.c                                  |   11 +
 fs/proc/thread_self.c                           |   14 +-
 fs/sysv/symlink.c                               |    4 
 fs/ubifs/file.c                                 |    4 
 fs/ufs/symlink.c                                |    4 
 fs/xfs/xfs_ioctl.c                              |    2 
 fs/xfs/xfs_iops.c                               |   19 +-
 fs/xfs/xfs_mount.h                              |    2 
 fs/xfs/xfs_super.c                              |    2 
 fs/xfs/xfs_symlink.c                            |   11 +
 fs/xfs/xfs_symlink.h                            |    2 
 include/linux/fs.h                              |   12 +
 include/linux/namei.h                           |    8 -
 include/linux/nfs_fs.h                          |    1 
 include/linux/sched.h                           |    3 
 include/linux/security.h                        |    9 -
 mm/shmem.c                                      |   18 +-
 security/capability.c                           |    2 
 security/security.c                             |    4 
 security/selinux/hooks.c                        |    4 
 58 files changed, 442 insertions(+), 247 deletions(-)

--
Signature


             reply	other threads:[~2015-03-16  4:44 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16  4:43 NeilBrown [this message]
2015-03-16  4:43 ` [PATCH 01/13] VFS: replace {, total_}link_count in task_struct with pointer to nameidata NeilBrown
2015-03-16 19:46   ` Al Viro
2015-03-16  4:43 ` [PATCH 02/13] VFS: make all ->follow_link handlers aware for LOOKUP_RCU NeilBrown
2015-03-16  4:43 ` [PATCH 04/13] security/selinux: check for LOOKUP_RCU in _follow_link NeilBrown
2015-03-16 21:00   ` Al Viro
2015-03-20  4:39     ` NeilBrown
2015-03-20  5:12       ` Al Viro
2015-03-16  4:43 ` [PATCH 03/13] VFS: remove nameidata args from ->follow_link and ->put_link NeilBrown
2015-03-16 20:47   ` Al Viro
2015-03-16  4:43 ` [PATCH 05/13] VFS/namei: use terminate_walk when symlink lookup fails NeilBrown
2015-03-16  4:43 ` [PATCH 12/13] XFS: allow follow_link to often succeed in RCU-walk NeilBrown
2015-03-16 22:37   ` Al Viro
2015-03-16  4:43 ` [PATCH 10/13] VFS/namei: handle LOOKUP_RCU in page_follow_link_light NeilBrown
2015-03-16 22:50   ` Al Viro
2015-03-19 22:38     ` NeilBrown
2015-03-19 23:46       ` Al Viro
2015-03-16  4:43 ` [PATCH 11/13] xfs: use RCU to free 'struct xfs_mount' NeilBrown
2015-03-16  4:43 ` [PATCH 13/13] NFS: support LOOKUP_RCU in nfs_follow_link NeilBrown
2015-03-16  4:43 ` [PATCH 06/13] VFS/namei: new flag to support RCU symlinks: LOOKUP_LINK_RCU NeilBrown
2015-03-16 22:33   ` Al Viro
2015-03-17  0:59     ` Al Viro
2015-03-16  4:43 ` [PATCH 07/13] VFS/namei: abort RCU-walk on symlink if atime needs updating NeilBrown
2015-03-16  4:43 ` [PATCH 08/13] VFS/namei: enhance follow_link to support RCU-walk NeilBrown
2015-03-16  4:43 ` [PATCH 09/13] VFS/namei: enable RCU-walk when following symlinks NeilBrown
2015-03-16 22:44   ` Al Viro
2015-03-16 19:14 ` [PATCH 00/13] Support follow_link in RCU-walk. - V2 Al Viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150316043602.23648.52734.stgit@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    --subject='Re: [PATCH 00/13] Support follow_link in RCU-walk. - V2' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).