1. 01 8月, 2012 17 次提交
    • L
      Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 941c8726
      Linus Torvalds 提交于
      Pull final RDMA changes from Roland Dreier:
       - Fix IPoIB to stop using unsafe linkage between networking neighbour
         layer and private path database.
       - Small fixes for bugs found by Fengguang Wu's automated builds.
      
      * tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        IPoIB: Use a private hash table for path lookup in xmit path
        IB/qib: Fix size of cc_supported_table_entries
        RDMA/ucma: Convert open-coded equivalent to memdup_user()
        RDMA/ocrdma: Fix check of GSI CQs
        RDMA/cma: Use PTR_RET rather than if (IS_ERR(...)) + PTR_ERR
      941c8726
    • L
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 8762541f
      Linus Torvalds 提交于
      Pull second set of media updates from Mauro Carvalho Chehab:
      
       - radio API: add support to work with radio frequency bands
      
       - new AM/FM radio drivers: radio-shark, radio-shark2
      
       - new Remote Controller USB driver: iguanair
      
       - conversion of several drivers to the v4l2 core control framework
      
       - new board additions at existing drivers
      
       - the remaining (and vast majority of the patches) are due to
         drivers/DocBook fixes/cleanups.
      
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (154 commits)
        [media] radio-tea5777: use library for 64bits div
        [media] tlg2300: Declare MODULE_FIRMWARE usage
        [media] lgs8gxx: Declare MODULE_FIRMWARE usage
        [media] xc5000: Add MODULE_FIRMWARE statements
        [media] s2255drv: Add MODULE_FIRMWARE statement
        [media] dib8000: move dereference after check for NULL
        [media] Documentation: Update cardlists
        [media] bttv: add support for Aposonic W-DVR
        [media] cx25821: Remove bad strcpy to read-only char*
        [media] pms.c: remove duplicated include
        [media] smiapp-core.c: remove duplicated include
        [media] via-camera: pass correct format settings to sensor
        [media] rtl2832.c: minor cleanup
        [media] Add support for the IguanaWorks USB IR Transceiver
        [media] Minor cleanups for MCE USB
        [media] drivers/media/dvb/siano/smscoreapi.c: use list_for_each_entry
        [media] Use a named union in struct v4l2_ioctl_info
        [media] mceusb: Add Twisted Melon USB IDs
        [media] staging/media/solo6x10: use module_pci_driver macro
        [media] staging/media/dt3155v4l: use module_pci_driver macro
        ...
      
      Conflicts:
      	Documentation/feature-removal-schedule.txt
      8762541f
    • L
      Merge tag 'nfs-for-3.6-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 6dbb35b0
      Linus Torvalds 提交于
      Pull second wave of NFS client updates from Trond Myklebust:
      
       - Patches from Bryan to allow splitting of the NFSv2/v3/v4 code into
         separate modules.
      
       - Fix Oopses in the NFSv4 idmapper
      
       - Fix a deadlock whereby rpciod tries to allocate a new socket and ends
         up recursing into the NFS code due to memory reclaim.
      
       - Increase the number of permitted callback connections.
      
      * tag 'nfs-for-3.6-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        nfs: explicitly reject LOCK_MAND flock() requests
        nfs: increase number of permitted callback connections.
        SUNRPC: return negative value in case rpcbind client creation error
        NFS: Convert v4 into a module
        NFS: Convert v3 into a module
        NFS: Convert v2 into a module
        NFS: Keep module parameters in the generic NFS client
        NFS: Split out remaining NFS v4 inode functions
        NFS: Pass super operations and xattr handlers in the nfs_subversion
        NFS: Only initialize the ACL client in the v3 case
        NFS: Create a try_mount rpc op
        NFS: Remove the NFS v4 xdev mount function
        NFS: Add version registering framework
        NFS: Fix a number of bugs in the idmapper
        nfs: skip commit in releasepage if we're freeing memory for fs-related reasons
        sunrpc: clarify comments on rpc_make_runnable
        pnfsblock: bail out partial page IO
      6dbb35b0
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · fd37ce34
      Linus Torvalds 提交于
      Pull networking update from David S. Miller:
       "I think Eric Dumazet and I have dealt with all of the known routing
        cache removal fallout.  Some other minor fixes all around.
      
        1) Fix RCU of cached routes, particular of output routes which require
           liberation via call_rcu() instead of call_rcu_bh().  From Eric
           Dumazet.
      
        2) Make sure we purge net device references in cached routes properly.
      
        3) TG3 driver bug fixes from Michael Chan.
      
        4) Fix reported 'expires' value in ipv6 routes, from Li Wei.
      
        5) TUN driver ioctl leaks kernel bytes to userspace, from Mathias
           Krause."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (22 commits)
        ipv4: Properly purge netdev references on uncached routes.
        ipv4: Cache routes in nexthop exception entries.
        ipv4: percpu nh_rth_output cache
        ipv4: Restore old dst_free() behavior.
        bridge: make port attributes const
        ipv4: remove rt_cache_rebuild_count
        net: ipv4: fix RCU races on dst refcounts
        net: TCP early demux cleanup
        tun: Fix formatting.
        net/tun: fix ioctl() based info leaks
        tg3: Update version to 3.124
        tg3: Fix race condition in tg3_get_stats64()
        tg3: Add New 5719 Read DMA workaround
        tg3: Fix Read DMA workaround for 5719 A0.
        tg3: Request APE_LOCK_PHY before PHY access
        ipv6: fix incorrect route 'expires' value passed to userspace
        mISDN: Bugfix only few bytes are transfered on a connection
        seeq: use PTR_RET at init_module of driver
        bnx2x: remove cast around the kmalloc in bnx2x_prev_mark_path
        ipv4: clean up put_child
        ...
      fd37ce34
    • L
      Merge tag 'for-v3.6' of git://git.infradead.org/battery-2.6 · 4b24ff71
      Linus Torvalds 提交于
      Pull battery updates from Anton Vorontsov:
       "The tag contains just a few battery-related changes for v3.6.  It's is
        all pretty straightforward, except one thing.
      
        One of our patches added thermal support for power supply class, but
        thermal/ subsystem changed under our feet.  We (well, Stephen, that
        is) caught the issue and it was decided[1] that I'd just delay the
        battery pull request, and then will fix it up by merging upstream back
        into battery tree at the specific commit.
      
        That's not all though: another[2] small fixup for thermal subsystem
        was needed to get rid of a warning in power supply subsystem (the
        warning was not drivers/power's "fault", the thermal registration
        function just needed a proper const annotation, which is also done by
        a small commit on top of the merge.
      
        So, to sum this up:
         - The 'master' branch of the battery tree was in the -next tree for
           weeks, was never rebased, altered etc.  It should be all OK;
         - Although, for-v3.6 tag contains the 'master' branch + merge + the
           warning fix.
      
        [1] http://lkml.org/lkml/2012/6/19/23
        [2] http://lkml.org/lkml/2012/6/18/28"
      
      * tag 'for-v3.6' of git://git.infradead.org/battery-2.6: (23 commits)
        thermal: Constify 'type' argument for the registration routine
        olpc-battery: update CHARGE_FULL_DESIGN property for BYD LiFe batteries
        olpc-battery: Add VOLTAGE_MAX_DESIGN property
        charger-manager: Fix build break related to EXTCON
        lp8727_charger: Move header file into platform_data directory
        power_supply: Add min/max alert properties for CAPACITY, TEMP, TEMP_AMBIENT
        bq27x00_battery: Add support for BQ27425 chip
        charger-manager: Set current limit of regulator for over current protection
        charger-manager: Use EXTCON Subsystem to detect charger cables for charging
        test_power: Add VOLTAGE_NOW and BATTERY_TEMP properties
        test_power: Add support for USB AC source
        gpio-charger: Use cansleep version of gpio_set_value
        bq27x00_battery: Add support for power average and health properties
        sbs-battery: Don't trigger false supply_changed event
        twl4030_charger: Allow charger to control the regulator that feeds it
        twl4030_charger: Add backup-battery charging
        twl4030_charger: Fix some typos
        max17042_battery: Support CHARGE_COUNTER power supply attribute
        smb347-charger: Add constant charge and current properties
        power_supply: Add constant charge_current and charge_voltage properties
        ...
      4b24ff71
    • L
      Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · bca1a5c0
      Linus Torvalds 提交于
      Pull perf updates from Ingo Molnar:
       "The biggest changes are Intel Nehalem-EX PMU uncore support, uprobes
        updates/cleanups/fixes from Oleg and diverse tooling updates (mostly
        fixes) now that Arnaldo is back from vacation."
      
      * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (40 commits)
        uprobes: __replace_page() needs munlock_vma_page()
        uprobes: Rename vma_address() and make it return "unsigned long"
        uprobes: Fix register_for_each_vma()->vma_address() check
        uprobes: Introduce vaddr_to_offset(vma, vaddr)
        uprobes: Teach build_probe_list() to consider the range
        uprobes: Remove insert_vm_struct()->uprobe_mmap()
        uprobes: Remove copy_vma()->uprobe_mmap()
        uprobes: Fix overflow in vma_address()/find_active_uprobe()
        uprobes: Suppress uprobe_munmap() from mmput()
        uprobes: Uprobe_mmap/munmap needs list_for_each_entry_safe()
        uprobes: Clean up and document write_opcode()->lock_page(old_page)
        uprobes: Kill write_opcode()->lock_page(new_page)
        uprobes: __replace_page() should not use page_address_in_vma()
        uprobes: Don't recheck vma/f_mapping in write_opcode()
        perf/x86: Fix missing struct before structure name
        perf/x86: Fix format definition of SNB-EP uncore QPI box
        perf/x86: Make bitfield unsigned
        perf/x86: Fix LLC-* and node-* events on Intel SandyBridge
        perf/x86: Add Intel Nehalem-EX uncore support
        perf/x86: Fix typo in format definition of uncore PCU filter
        ...
      bca1a5c0
    • L
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · ec7a19bf
      Linus Torvalds 提交于
      Pull powerpc updates from Benjamin Herrenschmidt:
       "Kumar sent me a handful of Freescale related fixes and I added another
        regression fix to the pile.
      
        PS.  I -will- eventually learn about that signed tag business :-)"
      
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        powerpc/kvm/book3s_32: Fix MTMSR_EERI macro
        powerpc/85xx: p1022ds: fix DIU/LBC switching with NAND enabled
        powerpc/85xx: p1022ds: disable the NAND flash node if video is enabled
        powerpc/85xx: Fix sram_offset parameter type
        powerpc/85xx: P3041DS - change espi input-clock from 40MHz to 35MHz
        powerpc/85xx: Fix pci base address error for p2020rdb-pc in dts
      ec7a19bf
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 26847fa6
      Linus Torvalds 提交于
      Pull s390 updates from Martin Schwidefsky:
       "This it the second batch of s390 patches for the 3.6 merge window.
        Included is enablement for two common code changes, killable page
        faults and sorted exception tables.  And the regular set of cleanup
        and bug fix patches."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390: make use of user_mode() macro where possible
        s390/mm: rename user_mode variable to addressing_mode
        s390/mm: fix fault handling for page table walk case
        s390/mm: make page faults killable
        s390: update defconfig
        s390/mm: downgrade page table after fork of a 31 bit process
        s390/ipl: Use diagnose 8 command separation
        s390/linker script: use RO_DATA_SECTION
        s390/exceptions: sort exception table at build time
        s390/debug: remove module_exit function / move EXPORT_SYMBOLs
      26847fa6
    • D
      ipv4: Properly purge netdev references on uncached routes. · caacf05e
      David S. Miller 提交于
      When a device is unregistered, we have to purge all of the
      references to it that may exist in the entire system.
      
      If a route is uncached, we currently have no way of accomplishing
      this.
      
      So create a global list that is scanned when a network device goes
      down.  This mirrors the logic in net/core/dst.c's dst_ifdown().
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      caacf05e
    • D
      c5038a83
    • L
      Merge branch 'nfsd-next' of git://linux-nfs.org/~bfields/linux · 08843b79
      Linus Torvalds 提交于
      Pull nfsd changes from J. Bruce Fields:
       "This has been an unusually quiet cycle--mostly bugfixes and cleanup.
        The one large piece is Stanislav's work to containerize the server's
        grace period--but that in itself is just one more step in a
        not-yet-complete project to allow fully containerized nfs service.
      
        There are a number of outstanding delegation, container, v4 state, and
        gss patches that aren't quite ready yet; 3.7 may be wilder."
      
      * 'nfsd-next' of git://linux-nfs.org/~bfields/linux: (35 commits)
        NFSd: make boot_time variable per network namespace
        NFSd: make grace end flag per network namespace
        Lockd: move grace period management from lockd() to per-net functions
        LockD: pass actual network namespace to grace period management functions
        LockD: manage grace list per network namespace
        SUNRPC: service request network namespace helper introduced
        NFSd: make nfsd4_manager allocated per network namespace context.
        LockD: make lockd manager allocated per network namespace
        LockD: manage grace period per network namespace
        Lockd: add more debug to host shutdown functions
        Lockd: host complaining function introduced
        LockD: manage used host count per networks namespace
        LockD: manage garbage collection timeout per networks namespace
        LockD: make garbage collector network namespace aware.
        LockD: mark host per network namespace on garbage collect
        nfsd4: fix missing fault_inject.h include
        locks: move lease-specific code out of locks_delete_lock
        locks: prevent side-effects of locks_release_private before file_lock is initialized
        NFSd: set nfsd_serv to NULL after service destruction
        NFSd: introduce nfsd_destroy() helper
        ...
      08843b79
    • E
      ipv4: percpu nh_rth_output cache · d26b3a7c
      Eric Dumazet 提交于
      Input path is mostly run under RCU and doesnt touch dst refcnt
      
      But output path on forwarding or UDP workloads hits
      badly dst refcount, and we have lot of false sharing, for example
      in ipv4_mtu() when reading rt->rt_pmtu
      
      Using a percpu cache for nh_rth_output gives a nice performance
      increase at a small cost.
      
      24 udpflood test on my 24 cpu machine (dummy0 output device)
      (each process sends 1.000.000 udp frames, 24 processes are started)
      
      before : 5.24 s
      after : 2.06 s
      For reference, time on linux-3.5 : 6.60 s
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Tested-by: NAlexander Duyck <alexander.h.duyck@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d26b3a7c
    • E
      ipv4: Restore old dst_free() behavior. · 54764bb6
      Eric Dumazet 提交于
      commit 404e0a8b (net: ipv4: fix RCU races on dst refcounts) tried
      to solve a race but added a problem at device/fib dismantle time :
      
      We really want to call dst_free() as soon as possible, even if sockets
      still have dst in their cache.
      dst_release() calls in free_fib_info_rcu() are not welcomed.
      
      Root of the problem was that now we also cache output routes (in
      nh_rth_output), we must use call_rcu() instead of call_rcu_bh() in
      rt_free(), because output route lookups are done in process context.
      
      Based on feedback and initial patch from David Miller (adding another
      call_rcu_bh() call in fib, but it appears it was not the right fix)
      
      I left the inet_sk_rx_dst_set() helper and added __rcu attributes
      to nh_rth_output and nh_rth_input to better document what is going on in
      this code.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      54764bb6
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client · cc8362b1
      Linus Torvalds 提交于
      Pull Ceph changes from Sage Weil:
       "Lots of stuff this time around:
      
         - lots of cleanup and refactoring in the libceph messenger code, and
           many hard to hit races and bugs closed as a result.
         - lots of cleanup and refactoring in the rbd code from Alex Elder,
           mostly in preparation for the layering functionality that will be
           coming in 3.7.
         - some misc rbd cleanups from Josh Durgin that are finally going
           upstream
         - support for CRUSH tunables (used by newer clusters to improve the
           data placement)
         - some cleanup in our use of d_parent that Al brought up a while back
         - a random collection of fixes across the tree
      
        There is another patch coming that fixes up our ->atomic_open()
        behavior, but I'm going to hammer on it a bit more before sending it."
      
      Fix up conflicts due to commits that were already committed earlier in
      drivers/block/rbd.c, net/ceph/{messenger.c, osd_client.c}
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (132 commits)
        rbd: create rbd_refresh_helper()
        rbd: return obj version in __rbd_refresh_header()
        rbd: fixes in rbd_header_from_disk()
        rbd: always pass ops array to rbd_req_sync_op()
        rbd: pass null version pointer in add_snap()
        rbd: make rbd_create_rw_ops() return a pointer
        rbd: have __rbd_add_snap_dev() return a pointer
        libceph: recheck con state after allocating incoming message
        libceph: change ceph_con_in_msg_alloc convention to be less weird
        libceph: avoid dropping con mutex before fault
        libceph: verify state after retaking con lock after dispatch
        libceph: revoke mon_client messages on session restart
        libceph: fix handling of immediate socket connect failure
        ceph: update MAINTAINERS file
        libceph: be less chatty about stray replies
        libceph: clear all flags on con_close
        libceph: clean up con flags
        libceph: replace connection state bits with states
        libceph: drop unnecessary CLOSED check in socket state change callback
        libceph: close socket directly from ceph_con_close()
        ...
      cc8362b1
    • M
      [media] radio-tea5777: use library for 64bits div · adfe1560
      Mauro Carvalho Chehab 提交于
      drivers/built-in.o: In function `radio_tea5777_set_freq':
      radio-tea5777.c:(.text+0x4d8704): undefined reference to `__udivdi3'
      Reported-by: NRandy Dunlap <rdunlap@xenotime.net>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      adfe1560
    • J
      nfs: explicitly reject LOCK_MAND flock() requests · ad0fcd4e
      Jeff Layton 提交于
      We have no mechanism to emulate LOCK_MAND locks on NFSv4, so explicitly
      return -EINVAL if someone requests it.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      ad0fcd4e
    • N
      nfs: increase number of permitted callback connections. · b042414f
      NeilBrown 提交于
      By default a sunrpc service is limited to (N+3)*20 connections
      where N is the number of threads.  This is 80 when N==1.
      If this number is exceeded a warning is printed suggesting that
      the number of threads be increased.  However with services which
      run a single thread, this is impossible.
      
      For such services there is a ->sv_maxconn setting that can be
      used to forcibly increase the limit, and silence the message.
      This is used by lockd.
      
      The nfs client uses a sunrpc service to handle callbacks and
      it too is single-threaded, so to avoid the useless messages,
      and to allow a reasonable number of concurrent connections,
      we need to set ->sv_maxconn.  1024 seems like a good number.
      Signed-off-by: NNeilBrown <neilb@suse.de>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      b042414f
  2. 31 7月, 2012 23 次提交