Skip to content
Snippets Groups Projects
  1. Jun 23, 2009
    • Trond Myklebust's avatar
      VFS: Add VFS helper functions for setting up private namespaces · cf8d2c11
      Trond Myklebust authored
      
      The purpose of this patch is to improve the remote mount path lookup
      support for distributed filesystems such as the NFSv4 client.
      
      When given a mount command of the form "mount server:/foo/bar /mnt", the
      NFSv4 client is required to look up the filehandle for "server:/", and
      then look up each component of the remote mount path "foo/bar" in order
      to find the directory that is actually going to be mounted on /mnt.
      Following that remote mount path may involve following symlinks,
      crossing server-side mount points and even following referrals to
      filesystem volumes on other servers.
      
      Since the standard VFS path lookup code already supports walking paths
      that contain all these features (using in-kernel automounts for
      following referrals) we would like to be able to reuse that rather than
      duplicate the full path traversal functionality in the NFSv4 client code.
      
      This patch therefore defines a VFS helper function create_mnt_ns(), that
      sets up a temporary filesystem namespace and attaches a root filesystem to
      it. It exports the create_mnt_ns() and put_mnt_ns() function for use by
      filesystem modules.
      
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cf8d2c11
    • Trond Myklebust's avatar
      VFS: Uninline the function put_mnt_ns() · 616511d0
      Trond Myklebust authored
      
      In order to allow modules to use it without having to export vfsmount_lock.
      
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      616511d0
    • Linus Torvalds's avatar
      mm/init: cpu_hotplug_init() must be initialized before SLAB · 31950eb6
      Linus Torvalds authored
      
      SLAB uses get/put_online_cpus() which use a mutex which is itself only
      initialized when cpu_hotplug_init() is called.  Currently we hang suring
      boot in SLAB due to doing that too late.
      
      Reported by James Bottomley and Sachin Sant (and possibly others).
      Debugged by Benjamin Herrenschmidt.
      
      This just removes the dynamic initialization of the data structures, and
      replaces it with a static one, avoiding this dependency entirely, and
      removing one unnecessary special initcall.
      
      Tested-by: default avatarSachin Sant <sachinp@in.ibm.com>
      Tested-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      Tested-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      31950eb6
    • Linus Torvalds's avatar
      Merge git://git.infradead.org/mtd-2.6 · ac1b7c37
      Linus Torvalds authored
      * git://git.infradead.org/mtd-2.6: (63 commits)
        mtd: OneNAND: Allow setting of boundary information when built as module
        jffs2: leaking jffs2_summary in function jffs2_scan_medium
        mtd: nand: Fix memory leak on txx9ndfmc probe failure.
        mtd: orion_nand: use burst reads with double word accesses
        mtd/nand: s3c6400 support for s3c2410 driver
        [MTD] [NAND] S3C2410: Use DIV_ROUND_UP
        [MTD] [NAND] S3C2410: Deal with unaligned lengths in S3C2440 buffer read/write
        [MTD] [NAND] S3C2410: Allow the machine code to get the BBT table from NAND
        [MTD] [NAND] S3C2410: Added a kerneldoc for s3c2410_nand_set
        mtd: physmap_of: Add multiple regions and concatenation support
        mtd: nand: max_retries off by one in mxc_nand
        mtd: nand: s3c2410_nand_setrate(): use correct macros for 2412/2440
        mtd: onenand: add bbt_wait & unlock_all as replaceable for some platform
        mtd: Flex-OneNAND support
        mtd: nand: add OMAP2/OMAP3 NAND driver
        mtd: maps: Blackfin async: fix memory leaks in probe/remove funcs
        mtd: uclinux: mark local stuff static
        mtd: uclinux: do not allow to be built as a module
        mtd: uclinux: allow systems to override map addr/size
        mtd: blackfin NFC: fix hang when using NAND on BF527-EZKITs
        ...
      ac1b7c37
  2. Jun 22, 2009
Loading