1. 20 Dec, 2012 14 commits
    • Marco Stornelli's avatar
      procfs: drop vmtruncate · 46f69557
      Marco Stornelli authored
      Removed vmtruncate
      Signed-off-by: default avatarMarco Stornelli <marco.stornelli@gmail.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      46f69557
    • Marco Stornelli's avatar
      reiserfs: drop vmtruncate · cfac4b47
      Marco Stornelli authored
      Removed vmtruncate
      Signed-off-by: default avatarMarco Stornelli <marco.stornelli@gmail.com>
      Reviewed-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      cfac4b47
    • Marco Stornelli's avatar
      sysv: drop vmtruncate · fa4d62ae
      Marco Stornelli authored
      Removed vmtruncate
      Signed-off-by: default avatarMarco Stornelli <marco.stornelli@gmail.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      fa4d62ae
    • Marco Stornelli's avatar
      ufs: drop vmtruncate · 83f6e371
      Marco Stornelli authored
      Removed vmtruncate
      Signed-off-by: default avatarMarco Stornelli <marco.stornelli@gmail.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      83f6e371
    • Jan Kara's avatar
      fs: Fix imbalance in freeze protection in mark_files_ro() · 72651cac
      Jan Kara authored
      File descriptors (even those for writing) do not hold freeze protection.
      Thus mark_files_ro() must call __mnt_drop_write() to only drop protection
      against remount read-only. Calling mnt_drop_write_file() as we do now
      results in:
      
      [ BUG: bad unlock balance detected! ]
      3.7.0-rc6-00028-g88e75b6 #101 Not tainted
      -------------------------------------
      kworker/1:2/79 is trying to release lock (sb_writers) at:
      [<ffffffff811b33b4>] mnt_drop_write+0x24/0x30
      but there are no more locks to release!
      Reported-by: default avatarZdenek Kabelac <zkabelac@redhat.com>
      CC: stable@vger.kernel.org
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      72651cac
    • Jeff Layton's avatar
      vfs: remove DCACHE_NEED_LOOKUP · 39e3c955
      Jeff Layton authored
      The code that relied on that flag was ripped out of btrfs quite some
      time ago, and never added back. Josef indicated that he was going to
      take a different approach to the problem in btrfs, and that we
      could just eliminate this flag.
      
      Cc: Josef Bacik <jbacik@fusionio.com>
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      39e3c955
    • Al Viro's avatar
      741b7c3f
    • Jeff Layton's avatar
      vfs: remove unneeded permission check from path_init · 582aa64a
      Jeff Layton authored
      When path_init is called with a valid dfd, that code checks permissions
      on the open directory fd and returns an error if the check fails. This
      permission check is redundant, however.
      
      Both callers of path_init immediately call link_path_walk afterward. The
      first thing that link_path_walk does for pathnames that do not consist
      only of slashes is to check for exec permissions at the starting point of
      the path walk.  And this check in path_init() is on the path taken only
      when *name != '/' && *name != '\0'.
      
      In most cases, these checks are very quick, but when the dfd is for a
      file on a NFS mount with the actimeo=0, each permission check goes
      out onto the wire. The result is 2 identical ACCESS calls.
      
      Given that these codepaths are fairly "hot", I think it makes sense to
      eliminate the permission check in path_init and simply assume that the
      caller will eventually check the permissions before proceeding.
      Reported-by: default avatarDave Wysochanski <dwysocha@redhat.com>
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      582aa64a
    • Miao Xie's avatar
      vfs, freeze: use ACCESS_ONCE() to guard access to ->mnt_flags · 1e75529e
      Miao Xie authored
      The compiler may optimize the while loop and make the check just be done once,
      so we should use ACCESS_ONCE() to guard access to ->mnt_flags
      Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      1e75529e
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · f01af9f8
      Linus Torvalds authored
      Pull sparc fixes from David Miller:
       "Please pull to get these sparc AES/DES/CAMELLIA crypto bug fixes as
        well as an addition of a pte_accessible() define for sparc64 and a
        hugetlb fix from Dave Kleikamp."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sparc64: Set CRYPTO_TFM_REQ_MAY_SLEEP consistently in CAMELLIA code.
        sparc64: Set CRYPTO_TFM_REQ_MAY_SLEEP consistently in DES code.
        sparc64: Fix ECB looping constructs in AES code.
        sparc64: Set CRYPTO_TFM_REQ_MAY_SLEEP consistently in AES code.
        sparc64: Fix AES ctr mode block size.
        sparc64: Fix unrolled AES 256-bit key loops.
        sparc64: Define pte_accessible()
        sparc: huge_ptep_set_* functions need to call set_huge_pte_at()
      f01af9f8
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 9eb127cc
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Really fix tuntap SKB use after free bug, from Eric Dumazet.
      
       2) Adjust SKB data pointer to point past the transport header before
          calling icmpv6_notify() so that the headers are in the state which
          that function expects.  From Duan Jiong.
      
       3) Fix ambiguities in the new tuntap multi-queue APIs.  From Jason
          Wang.
      
       4) mISDN needs to use del_timer_sync(), from Konstantin Khlebnikov.
      
       5) Don't destroy mutex after freeing up device private in mac802154,
          fix also from Konstantin Khlebnikov.
      
       6) Fix INET request socket leak in TCP and DCCP, from Christoph Paasch.
      
       7) SCTP HMAC kconfig rework, from Neil Horman.
      
       8) Fix SCTP jprobes function signature, otherwise things explode, from
          Daniel Borkmann.
      
       9) Fix typo in ipv6-offload Makefile variable reference, from Simon
          Arlott.
      
      10) Don't fail USBNET open just because remote wakeup isn't supported,
          from Oliver Neukum.
      
      11) be2net driver bug fixes from Sathya Perla.
      
      12) SOLOS PCI ATM driver bug fixes from Nathan Williams and David
          Woodhouse.
      
      13) Fix MTU changing regression in 8139cp driver, from John Greene.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (45 commits)
        solos-pci: ensure all TX packets are aligned to 4 bytes
        solos-pci: add firmware upgrade support for new models
        solos-pci: remove superfluous debug output
        solos-pci: add GPIO support for newer versions on Geos board
        8139cp: Prevent dev_close/cp_interrupt race on MTU change
        net: qmi_wwan: add ZTE MF880
        drivers/net: Use of_match_ptr() macro in smsc911x.c
        drivers/net: Use of_match_ptr() macro in smc91x.c
        ipv6: addrconf.c: remove unnecessary "if"
        bridge: Correctly encode addresses when dumping mdb entries
        bridge: Do not unregister all PF_BRIDGE rtnl operations
        use generic usbnet_manage_power()
        usbnet: generic manage_power()
        usbnet: handle PM failure gracefully
        ksz884x: fix receive polling race condition
        qlcnic: update driver version
        qlcnic: fix unused variable warnings
        net: fec: forbid FEC_PTP on SoCs that do not support
        be2net: fix wrong frag_idx reported by RX CQ
        be2net: fix be_close() to ensure all events are ack'ed
        ...
      9eb127cc
    • Linus Torvalds's avatar
      Merge tags 'dt-for-linus', 'gpio-for-linus' and 'spi-for-linus' of... · e3279550
      Linus Torvalds authored
      Merge tags 'dt-for-linus', 'gpio-for-linus' and 'spi-for-linus' of git://git.secretlab.ca/git/linux-2.6
      
      Pull devicetree, gpio and spi bugfixes from Grant Likely:
       "Device tree v3.8 bug fix:
         - Fixes an undefined struct device build error and a missing symbol
           export.
      
        GPIO device driver bug fixes:
         - gpio/mvebu-gpio: Make mvebu-gpio depend on OF_CONFIG
         - gpio/ich: Add missing spinlock init
      
        SPI device driver bug fixes:
         - Most of this is bug fixes to the core code and the sh-hspi and
           s3c64xx device drivers.
      
         - There is also a patch here to add DT support to the Atmel driver.
           This one should have been in the first round, but I missed it.
           It's a low risk change contained within a single driver and the
           Atmel maintainer has requested it."
      
      * tag 'dt-for-linus' of git://git.secretlab.ca/git/linux-2.6:
        of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
        of: Fix export of of_find_matching_node_and_match()
      
      * tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6:
        gpio/mvebu-gpio: Make mvebu-gpio depend on OF_CONFIG
        gpio/ich: Add missing spinlock init
      
      * tag 'spi-for-linus' of git://git.secretlab.ca/git/linux-2.6:
        spi/sh-hspi: fix return value check in hspi_probe().
        spi: fix tegra SPI binding examples
        spi/atmel: add DT support
        of/spi: Fix SPI module loading by using proper "spi:" modalias prefixes.
        spi: Change FIFO flush operation and spi channel off
        spi: Keep chipselect assertion during one message
      e3279550
    • Linus Torvalds's avatar
      Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux · dcd6a97d
      Linus Torvalds authored
      Pull drm bugfix from Dave Airlie:
       "Just a single urgent regression fix, seeing a few wierd behaviours I'd
        like not to persist."
      
      * 'drm-next' of git://people.freedesktop.org/~airlied/linux:
        drm/ttm: fix delayed ttm_bo_cleanup_refs_and_unlock delayed handling
      dcd6a97d
    • Linus Torvalds's avatar
      Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random · 7005cd39
      Linus Torvalds authored
      Pull random updates from Ted Ts'o:
       "A few /dev/random improvements for the v3.8 merge window."
      
      * tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random:
        random: Mix cputime from each thread that exits to the pool
        random: prime last_data value per fips requirements
        random: fix debug format strings
        random: make it possible to enable debugging without rebuild
      7005cd39
  2. 19 Dec, 2012 26 commits