1. 30 Apr, 2013 40 commits
    • Linus Torvalds's avatar
      Merge branch 'for-next-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 6da6dc23
      Linus Torvalds authored
      Pull SCSI target update from Nicholas Bellinger:
       "The highlights this round include:
      
         - Add fileio support for WRITE_SAME w/ UNMAP=1 discard (asias)
         - Add fileio support for UNMAP discard (asias)
         - Add tcm_vhost hotplug support to work with upstream QEMU
           vhost-scsi-pci code (asias + mst)
         - Check for aborted sequence in tcm_fc response path (mdr)
         - Add initial iscsit_transport support into iscsi-target code (nab)
         - Refactor iscsi-target RX PDU logic + export request PDU handling
           (nab)
         - Refactor iscsi-target TX queue logic + export response PDU creation
           (nab)
         - Add new iSCSI Extentions for RDMA (ISER) target driver (Or + nab)
      
        The biggest changes revolve around iscsi-target refactoring in order
        to support the iser-target driver.  This includes the conversion of
        the iscsi-target data-path to use modern se_cmd->cmd_kref counting,
        and allowing transport independent aspects of RX/TX PDU
        request/response handling be shared across existing traditional
        iscsi-target code, and the new iser-target code.
      
        Thanks to Or Gerlitz + Mellanox for supporting the iser-target
        development effort!"
      
      * 'for-next-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (25 commits)
        iser-target: Add iSCSI Extensions for RDMA (iSER) target driver
        tcm_vhost: Enable VIRTIO_SCSI_F_HOTPLUG
        tcm_vhost: Add ioctl to get and set events missed flag
        tcm_vhost: Add hotplug/hotunplug support
        tcm_vhost: Refactor the lock nesting rule
        tcm_fc: Check for aborted sequence
        iscsi-target: Add iser network portal attribute
        iscsi-target: Refactor TX queue logic + export response PDU creation
        iscsi-target: Refactor RX PDU logic + export request PDU handling
        iscsi-target: Add per transport iscsi_cmd alloc/free
        iscsi-target: Add iser-target parameter keys + setup during login
        iscsi-target: Initial traditional TCP conversion to iscsit_transport
        iscsi-target: Add iscsit_transport API template
        target: Add export of target_get_sess_cmd symbol
        target: Change default sense key of NOT_READY
        target/file: Set is_nonrot attribute
        target: Add sbc_execute_unmap() helper
        target/iblock: Add iblock_do_unmap() helper
        target/file: Add fd_do_unmap() helper
        target/file: Add UNMAP emulation support
        ...
      6da6dc23
    • Linus Torvalds's avatar
      Merge tag 'dlm-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm · 8c55f146
      Linus Torvalds authored
      Pull dlm update from David Teigland:
       "This includes a single patch to avoid fully processing a posix unlock
        from close when no posix locks exist on the file"
      
      * tag 'dlm-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm:
        dlm: avoid unnecessary posix unlock
      8c55f146
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-3.10-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 8728f986
      Linus Torvalds authored
      Pull NFS client bugfixes and cleanups from Trond Myklebust:
      
       - NLM: stable fix for NFSv2/v3 blocking locks
      
       - NFSv4.x: stable fixes for the delegation recall error handling code
      
       - NFSv4.x: Security flavour negotiation fixes and cleanups by Chuck
         Lever
      
       - SUNRPC: A number of RPCSEC_GSS fixes and cleanups also from Chuck
      
       - NFSv4.x assorted state management and reboot recovery bugfixes
      
       - NFSv4.1: In cases where we have already looked up a file, and hold a
         valid filehandle, use the new open-by-filehandle operation instead of
         opening by name.
      
       - Allow the NFSv4.1 callback thread to freeze
      
       - NFSv4.x: ensure that file unlock waits for readahead to complete
      
       - NFSv4.1: ensure that the RPC layer doesn't override the NFS session
         table size negotiation by limiting the number of slots.
      
       - NFSv4.x: Fix SETATTR spec compatibility issues
      
      * tag 'nfs-for-3.10-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (67 commits)
        NFSv4: Warn once about servers that incorrectly apply open mode to setattr
        NFSv4: Servers should only check SETATTR stateid open mode on size change
        NFSv4: Don't recheck permissions on open in case of recovery cached open
        NFSv4.1: Don't do a delegated open for NFS4_OPEN_CLAIM_DELEG_CUR_FH modes
        NFSv4.1: Use the more efficient open_noattr call for open-by-filehandle
        NFS: Retry SETCLIENTID with AUTH_SYS instead of AUTH_NONE
        NFSv4: Ensure that we clear the NFS_OPEN_STATE flag when appropriate
        LOCKD: Ensure that nlmclnt_block resets block->b_status after a server reboot
        NFSv4: Ensure the LOCK call cannot use the delegation stateid
        NFSv4: Use the open stateid if the delegation has the wrong mode
        nfs: Send atime and mtime as a 64bit value
        NFSv4: Record the OPEN create mode used in the nfs4_opendata structure
        NFSv4.1: Set the RPC_CLNT_CREATE_INFINITE_SLOTS flag for NFSv4.1 transports
        SUNRPC: Allow rpc_create() to request that TCP slots be unlimited
        SUNRPC: Fix a livelock problem in the xprt->backlog queue
        NFSv4: Fix handling of revoked delegations by setattr
        NFSv4 release the sequence id in the return on close case
        nfs: remove unnecessary check for NULL inode->i_flock from nfs_delegation_claim_locks
        NFS: Ensure that NFS file unlock waits for readahead to complete
        NFS: Add functionality to allow waiting on all outstanding reads to complete
        ...
      8728f986
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw · e72859b8
      Linus Torvalds authored
      Pull GFS2 updates from Steven Whitehouse:
       "There is not a whole lot of change this time - there are some further
        changes which are in the works, but those will be held over until next
        time.
      
        Here there are some clean ups to inode creation, the addition of an
        origin (local or remote) indicator to glock demote requests, removal
        of one of the remaining GFP_NOFAIL allocations during log flushes, one
        minor clean up, and a one liner bug fix."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw:
        GFS2: Flush work queue before clearing glock hash tables
        GFS2: Add origin indicator to glock demote tracing
        GFS2: Add origin indicator to glock callbacks
        GFS2: replace gfs2_ail structure with gfs2_trans
        GFS2: Remove vestigial parameter ip from function rs_deltree
        GFS2: Use gfs2_dinode_out() in the inode create path
        GFS2: Remove gfs2_refresh_inode from inode creation path
        GFS2: Clean up inode creation path
      e72859b8
    • Linus Torvalds's avatar
      Merge tag 'arm64-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64 · c9ef7139
      Linus Torvalds authored
      Pull arm64 update from Catalin Marinas:
       "Main features:
      
         - Versatile Express SoC (model) support - DT files and Kconfig
           entries (there are no arch/arm64/mach-* directories).  The bulk of
           the code has already been moved to drivers/ as part of the ARM SoC
           clean-up.
      
         - Basic multi-cluster support (CPU logical map initialised from the
           DT)
      
         - Simple earlyprintk support for UART 8250/16550 and FastModel
           console output
      
         - Optimised kernel library bitops and string functions.
      
         - Automatic initialisation of the irqchip and clocks via DT"
      
      * tag 'arm64-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64: (26 commits)
        arm64: Use acquire/release semantics instead of explicit DMB
        arm64: klib: bitops: fix unpredictable stxr usage
        arm64: vexpress: Enable ARMv8 RTSM model (SoC) support
        arm64: vexpress: Add dts files for the ARMv8 RTSM models
        arm64: Survive invalid cpu enable-methods
        arm64: mm: Correct show_pte behaviour
        arm64: Fix compat types affecting struct compat_stat
        arm64: Execute DSB during thread switching for TLB/cache maintenance
        arm64: compiling issue, need add include/asm/vga.h file
        arm64: smp: honour #address-size when parsing CPU reg property
        arm64: Define cmpxchg64 and cmpxchg64_local for outside use
        arm64: Define readq and writeq for driver module using
        arm64: Fix task tracing
        arm64: add explicit symbols to ESR_EL1 decoding
        arm64: Use irqchip_init() for interrupt controller initialisation
        arm64: psci: Use the MPIDR values from cpu_logical_map for cpu ids.
        arm64: klib: Optimised atomic bitops
        arm64: klib: Optimised string functions
        arm64: klib: Optimised memory functions
        arm64: head: match all affinity levels in the pen of the secondaries
        ...
      c9ef7139
    • Linus Torvalds's avatar
      Merge tag 'metag-for-v3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag · 87c1f0f8
      Linus Torvalds authored
      Pull arch/metag update from James Hogan:
      
       - Various fixes for the interrupting perf counter handling in metag's
         perf backend.
      
       - Add OProfile support based on perf.
      
       - Sets up cache partitions for SMP so bootloader doesn't have to.
      
       - Patch from Paul Bolle to remove ARCH_POPULATES_NODE_MAP again
         (touches microblaze too).
      
       - Add TLS pointer regset to metag ptrace api.
      
       - Add exported metag DSP extended context handling header <asm/ech.h>.
      
       - Increase defconfig log buffer size to 128KiB.
      
       - Various fixes, typos, missing exports.
      
      * tag 'metag-for-v3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag:
        metag: defconfigs: increase log buffer 8KiB => 128KiB
        metag: avoid unnecessary builtin dtb rebuilds
        metag: add exported <asm/ech.h> for extended context handling
        metag: export _metag_da_present and cpu_2_hwthread_id
        metag: ptrace: Implement NT_METAG_TLS
        memblock: Kill ARCH_POPULATES_NODE_MAP once more
        metag: cachepart: fix get_global_dcache_size() typo
        metag: cachepart: take into account small cache bits
        metag: smp: copy cache partition and enable GCOn
        metag: OProfile support
        metag: perf: prepare for use by oprofile
        metag: perf: don't reset TXTACTCYC
        metag: perf: use hard_processor_id() to get thread
        metag: perf: fix frequency sampling (dynamic period)
        metag: perf: add missing prev_count updates
        metag: perf: fixes for interrupting perf counters
        metag: perf: fix wrap handling in delta calculation
        metag: perf: fix core internal / perf channel mux
      87c1f0f8
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · 165bc513
      Linus Torvalds authored
      Pull m68k update from Geert Uytterhoeven.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
        m68k: Remove inline strlen() implementation
        m68k/atari: USB - add platform devices for EtherNAT/NetUSBee ISP1160 HCD
        m68k: Implement ndelay() based on the existing udelay() logic
        m68k/atari: EtherNAT - add interrupt chip definition for CPLD interrupts
        m68k/atari: EtherNEC - add platform device support
        m68k/atari: EtherNAT - platform device and IRQ support code
        m68k/atari: use dedicated irq_chip for timer D interrupts
        m68k/atari: ROM port ISA adapter support
        m68k: Add missing cmpxchg64() if CONFIG_RMW_INSNS=y
      165bc513
    • Linus Torvalds's avatar
      Merge branch 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac · e2823299
      Linus Torvalds authored
      Pull edac fixes from Mauro Carvalho Chehab:
       "Two edac fixes:
      
         - i7300_edac currently reports a wrong number of DIMMs when the
           memory controller is in single channel mode
      
         - on some Sandy Bridge machines, the EDAC driver bails out as one of
           the PCI IDs used by the driver is hidden by BIOS.  As the driver
           uses it only to detect the type of memory, make it optional at the
           driver"
      
      * 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac:
        edac: sb_edac.c should not require prescence of IMC_DDRIO device
        i7300_edac: Fix memory detection in single mode
      e2823299
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 240c3c34
      Linus Torvalds authored
      Pull media update from Mauro Carvalho Chehab:
      
       - OF documentation and patches at core and drivers, to be used by for
         embedded media systems
      
       - some I2C drivers used on go7007 were rewritten/promoted from staging:
         sony-btf-mpx, tw2804, tw9903, tw9906, wis-ov7640, wis-uda1342
      
       - add fimc-is driver (Exynos)
      
       - add a new radio driver: radio-si476x
      
       - add a two new tuners: r820t and tuner_it913x
      
       - split camera code on em28xx driver and add more models
      
       - the cypress firmware load is used outside dvb usb drivers.  So, move
         it to a common directory to make easier to re-use it
      
       - siano media driver updated to work with sms2270 devices
      
       - several work done in order to promote go7007 and solo6x1x out of
         staging (still, there are some pending issues)
      
       - several API compliance fixes at v4l2 drivers that don't behave as
         expected
      
       - as usual, lots of driver fixes, improvements, cleanups and new device
         addition at the existing drivers.
      
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (831 commits)
        [media] cx88: make core less verbose
        [media] em28xx: fix oops at em28xx_dvb_bus_ctrl()
        [media] s5c73m3: fix indentation of the help section in Kconfig
        [media] cx25821-alsa: get rid of a __must_check warning
        [media] cx25821-video: declare cx25821_vidioc_s_std as static
        [media] cx25821-video: remove maxw from cx25821_vidioc_try_fmt_vid_cap
        [media] r820t: Remove a warning for an unused value
        [media] dib0090: Fix a warning at dib0090_set_EFUSE
        [media] dib8000: fix a warning
        [media] dib8000: Fix sub-channel range
        [media] dib8000: store dtv_property_cache in a temp var
        [media] dib8000: warning fix: declare internal functions as static
        [media] r820t: quiet gcc warning on n_ring
        [media] r820t: memory leak in release()
        [media] r820t: precendence bug in r820t_xtal_check()
        [media] videodev2.h: Remove the unused old V4L1 buffer types
        [media] anysee: Grammar s/report the/report to/
        [media] anysee: Initialize ret = 0 in anysee_frontend_attach()
        [media] media: videobuf2: fix the length check for mmap
        [media] em28xx: save isoc endpoint number for DVB only if endpoint has alt settings with xMaxPacketSize != 0
        ...
      240c3c34
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · 19b344ef
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
      
       - hid driver transport cleanup, finalizing the long-desired decoupling
         of core from transport layers, by Benjamin Tissoires and Henrik
         Rydberg
      
       - support for hybrid finger/pen multitouch HID devices, by Benjamin
         Tissoires
      
       - fix for long-standing issue in Logitech unifying driver sometimes not
         inializing properly due to device specifics, by Andrew de los Reyes
      
       - Wii remote driver updates to support 2nd generation of devices, by
         David Herrmann
      
       - support for Apple IR remote
      
       - roccat driver now supports new devices (Roccat Kone Pure, IskuFX), by
         Stefan Achatz
      
       - debugfs locking fixes in hid debug interface, by Jiri Kosina
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (43 commits)
        HID: protect hid_debug_list
        HID: debug: break out hid_dump_report() into hid-debug
        HID: Add PID for Japanese version of NE4K keyboard
        HID: hid-lg4ff add support for new version of DFGT wheel
        HID: icade: u16 which never < 0
        HID: clarify Magic Mouse Kconfig description
        HID: appleir: add support for Apple ir devices
        HID: roccat: added media key support for Kone
        HID: hid-lenovo-tpkbd: remove doubled hid_get_drvdata
        HID: i2c-hid: fix length for set/get report in i2c hid
        HID: wiimote: parse reduced status reports
        HID: wiimote: add 2nd generation Wii Remote IDs
        HID: wiimote: use unique battery names
        HID: hidraw: warn if userspace headers are outdated
        HID: multitouch: force BTN_STYLUS for pen devices
        HID: multitouch: append " Pen" to the name of the stylus input
        HID: multitouch: add handling for pen in dual-sensors device
        HID: multitouch: change touch sensor detection in mt_input_configured()
        HID: multitouch: do not map usage from non used reports
        HID: multitouch: breaks out touch handling in specific functions
        ...
      19b344ef
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial · 5d434fcb
      Linus Torvalds authored
      Pull trivial tree updates from Jiri Kosina:
       "Usual stuff, mostly comment fixes, typo fixes, printk fixes and small
        code cleanups"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits)
        mm: Convert print_symbol to %pSR
        gfs2: Convert print_symbol to %pSR
        m32r: Convert print_symbol to %pSR
        iostats.txt: add easy-to-find description for field 6
        x86 cmpxchg.h: fix wrong comment
        treewide: Fix typo in printk and comments
        doc: devicetree: Fix various typos
        docbook: fix 8250 naming in device-drivers
        pata_pdc2027x: Fix compiler warning
        treewide: Fix typo in printks
        mei: Fix comments in drivers/misc/mei
        treewide: Fix typos in kernel messages
        pm44xx: Fix comment for "CONFIG_CPU_IDLE"
        doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"
        mmzone: correct "pags" to "pages" in comment.
        kernel-parameters: remove outdated 'noresidual' parameter
        Remove spurious _H suffixes from ifdef comments
        sound: Remove stray pluses from Kconfig file
        radio-shark: Fix printk "CONFIG_LED_CLASS"
        doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE
        ...
      5d434fcb
    • Linus Torvalds's avatar
      Merge branch 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5a5a1bf0
      Linus Torvalds authored
      Pull x86 RAS changes from Ingo Molnar:
      
       - Add an Intel CMCI hotplug fix
      
       - Add AMD family 16h EDAC support
      
       - Make the AMD MCE banks code more flexible for virtual environments
      
      * 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        amd64_edac: Add Family 16h support
        x86/mce: Rework cmci_rediscover() to play well with CPU hotplug
        x86, MCE, AMD: Use MCG_CAP MSR to find out number of banks on AMD
        x86, MCE, AMD: Replace shared_bank array with is_shared_bank() helper
      5a5a1bf0
    • Linus Torvalds's avatar
      Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 74c7d2f5
      Linus Torvalds authored
      Pull x86 platform changes from Ingo Molnar:
       "Small fixes and cleanups all over the map"
      
      * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/setup: Drop unneeded include <asm/dmi.h>
        x86/olpc/xo1/sci: Don't call input_free_device() after input_unregister_device()
        x86/platform/intel/mrst: Remove cast for kmalloc() return value
        x86/platform/uv: Replace kmalloc() & memset with kzalloc()
      74c7d2f5
    • Linus Torvalds's avatar
      Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1e2f5b59
      Linus Torvalds authored
      Pull x86 paravirt update from Ingo Molnar:
       "Various paravirtualization related changes - the biggest one makes
        guest support optional via CONFIG_HYPERVISOR_GUEST"
      
      * 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, wakeup, sleep: Use pvops functions for changing GDT entries
        x86, xen, gdt: Remove the pvops variant of store_gdt.
        x86-32, gdt: Store/load GDT for ACPI S3 or hibernation/resume path is not needed
        x86-64, gdt: Store/load GDT for ACPI S3 or hibernate/resume path is not needed.
        x86: Make Linux guest support optional
        x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu
      1e2f5b59
    • Linus Torvalds's avatar
      Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f9b3bcfb
      Linus Torvalds authored
      Pull x86 mm changes from Ingo Molnar:
       "Misc smaller changes all over the map"
      
      * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/iommu/dmar: Remove warning for HPET scope type
        x86/mm/gart: Drop unnecessary check
        x86/mm/hotplug: Put kernel_physical_mapping_remove() declaration in CONFIG_MEMORY_HOTREMOVE
        x86/mm/fixmap: Remove unused FIX_CYCLONE_TIMER
        x86/mm/numa: Simplify some bit mangling
        x86/mm: Re-enable DEBUG_TLBFLUSH for X86_32
        x86/mm/cpa: Cleanup split_large_page() and its callee
        x86: Drop always empty .text..page_aligned section
      f9b3bcfb
    • Linus Torvalds's avatar
      Merge branch 'x86-kaslr-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 01c7cd0e
      Linus Torvalds authored
      Pull perparatory x86 kasrl changes from Ingo Molnar:
       "This contains changes from the ongoing KASLR work, by Kees Cook.
      
        The main changes are the use of a read-only IDT on x86 (which
        decouples the userspace visible virtual IDT address from the physical
        address), and a rework of ELF relocation support, in preparation of
        random, boot-time kernel image relocation."
      
      * 'x86-kaslr-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, relocs: Refactor the relocs tool to merge 32- and 64-bit ELF
        x86, relocs: Build separate 32/64-bit tools
        x86, relocs: Add 64-bit ELF support to relocs tool
        x86, relocs: Consolidate processing logic
        x86, relocs: Generalize ELF structure names
        x86: Use a read-only IDT alias on all CPUs
      01c7cd0e
    • Linus Torvalds's avatar
      Merge branch 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 39b2f865
      Linus Torvalds authored
      Pull x86 debug update from Ingo Molnar:
       "Two small changes: a documentation update and a constification"
      
      * 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, early-printk: Update earlyprintk documentation (and kill x86 copy)
        x86: Constify a few items
      39b2f865
    • Linus Torvalds's avatar
      Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · df8edfa9
      Linus Torvalds authored
      Pull x86 cpuid changes from Ingo Molnar:
       "The biggest change is x86 CPU bug handling refactoring and cleanups,
        by Borislav Petkov"
      
      * 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, CPU, AMD: Drop useless label
        x86, AMD: Correct {rd,wr}msr_amd_safe warnings
        x86: Fold-in trivial check_config function
        x86, cpu: Convert AMD Erratum 400
        x86, cpu: Convert AMD Erratum 383
        x86, cpu: Convert Cyrix coma bug detection
        x86, cpu: Convert FDIV bug detection
        x86, cpu: Convert F00F bug detection
        x86, cpu: Expand cpufeature facility to include cpu bugs
      df8edfa9
    • Linus Torvalds's avatar
      Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 874f6d1b
      Linus Torvalds authored
      Pull x86 cleanups from Ingo Molnar:
       "Misc smaller cleanups"
      
      * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/lib: Fix spelling, put space between a numeral and its units
        x86/lib: Fix spelling in the comments
        x86, quirks: Shut-up a long-standing gcc warning
        x86, msr: Unify variable names
        x86-64, docs, mm: Add vsyscall range to virtual address space layout
        x86: Drop KERNEL_IMAGE_START
        x86_64: Use __BOOT_DS instead_of __KERNEL_DS for safety
      874f6d1b
    • Linus Torvalds's avatar
      Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e486b4c4
      Linus Torvalds authored
      Pull extable dmesg fixlet from Ingo Molnar:
       "Small tweak to reduce kmsg boot time spam"
      
      * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        extable: Flip the sorting message
      e486b4c4
    • Linus Torvalds's avatar
      Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ab86e974
      Linus Torvalds authored
      Pull core timer updates from Ingo Molnar:
       "The main changes in this cycle's merge are:
      
         - Implement shadow timekeeper to shorten in kernel reader side
           blocking, by Thomas Gleixner.
      
         - Posix timers enhancements by Pavel Emelyanov:
      
         - allocate timer ID per process, so that exact timer ID allocations
           can be re-created be checkpoint/restore code.
      
         - debuggability and tooling (/proc/PID/timers, etc.) improvements.
      
         - suspend/resume enhancements by Feng Tang: on certain new Intel Atom
           processors (Penwell and Cloverview), there is a feature that the
           TSC won't stop in S3 state, so the TSC value won't be reset to 0
           after resume.  This can be taken advantage of by the generic via
           the CLOCK_SOURCE_SUSPEND_NONSTOP flag: instead of using the RTC to
           recover/approximate sleep time, the main (and precise) clocksource
           can be used.
      
         - Fix /proc/timer_list for 4096 CPUs by Nathan Zimmer: on so many
           CPUs the file goes beyond 4MB of size and thus the current
           simplistic seqfile approach fails.  Convert /proc/timer_list to a
           proper seq_file with its own iterator.
      
         - Cleanups and refactorings of the core timekeeping code by John
           Stultz.
      
         - International Atomic Clock time is managed by the NTP code
           internally currently but not exposed externally.  Separate the TAI
           code out and add CLOCK_TAI support and TAI support to the hrtimer
           and posix-timer code, by John Stultz.
      
         - Add deep idle support enhacement to the broadcast clockevents core
           timer code, by Daniel Lezcano: add an opt-in CLOCK_EVT_FEAT_DYNIRQ
           clockevents feature (which will be utilized by future clockevents
           driver updates), which allows the use of IRQ affinities to avoid
           spurious wakeups of idle CPUs - the right CPU with an expiring
           timer will be woken.
      
         - Add new ARM bcm281xx clocksource driver, by Christian Daudt
      
         - ... various other fixes and cleanups"
      
      * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (52 commits)
        clockevents: Set dummy handler on CPU_DEAD shutdown
        timekeeping: Update tk->cycle_last in resume
        posix-timers: Remove unused variable
        clockevents: Switch into oneshot mode even if broadcast registered late
        timer_list: Convert timer list to be a proper seq_file
        timer_list: Split timer_list_show_tickdevices
        posix-timers: Show sigevent info in proc file
        posix-timers: Introduce /proc/PID/timers file
        posix timers: Allocate timer id per process (v2)
        timekeeping: Make sure to notify hrtimers when TAI offset changes
        hrtimer: Fix ktime_add_ns() overflow on 32bit architectures
        hrtimer: Add expiry time overflow check in hrtimer_interrupt
        timekeeping: Shorten seq_count region
        timekeeping: Implement a shadow timekeeper
        timekeeping: Delay update of clock->cycle_last
        timekeeping: Store cycle_last value in timekeeper struct as well
        ntp: Remove ntp_lock, using the timekeeping locks to protect ntp state
        timekeeping: Simplify tai updating from do_adjtimex
        timekeeping: Hold timekeepering locks in do_adjtimex and hardpps
        timekeeping: Move ADJ_SETOFFSET to top level do_adjtimex()
        ...
      ab86e974
    • Catalin Marinas's avatar
      arm64: Use acquire/release semantics instead of explicit DMB · 16c85a1f
      Catalin Marinas authored
      This patch changes the test_and_*_bit functions to use the
      load-acquire/store-release instructions instead of explicit DMB.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      16c85a1f
    • Mark Rutland's avatar
      arm64: klib: bitops: fix unpredictable stxr usage · c47d6a04
      Mark Rutland authored
      We're currently relying on unpredictable behaviour in our testops
      (test_and_*_bit), as stxr is unpredictable when the status register and
      the source register are the same
      
      This patch changes reallocates the status register so as to bring us back into
      the realm of predictable behaviour. Boot tested on an AEMv8 model.
      Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      c47d6a04
    • Linus Torvalds's avatar
      Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8700c95a
      Linus Torvalds authored
      Pull SMP/hotplug changes from Ingo Molnar:
       "This is a pretty large, multi-arch series unifying and generalizing
        the various disjunct pieces of idle routines that architectures have
        historically copied from each other and have grown in random, wildly
        inconsistent and sometimes buggy directions:
      
         101 files changed, 455 insertions(+), 1328 deletions(-)
      
        this went through a number of review and test iterations before it was
        committed, it was tested on various architectures, was exposed to
        linux-next for quite some time - nevertheless it might cause problems
        on architectures that don't read the mailing lists and don't regularly
        test linux-next.
      
        This cat herding excercise was motivated by the -rt kernel, and was
        brought to you by Thomas "the Whip" Gleixner."
      
      * 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (40 commits)
        idle: Remove GENERIC_IDLE_LOOP config switch
        um: Use generic idle loop
        ia64: Make sure interrupts enabled when we "safe_halt()"
        sparc: Use generic idle loop
        idle: Remove unused ARCH_HAS_DEFAULT_IDLE
        bfin: Fix typo in arch_cpu_idle()
        xtensa: Use generic idle loop
        x86: Use generic idle loop
        unicore: Use generic idle loop
        tile: Use generic idle loop
        tile: Enter idle with preemption disabled
        sh: Use generic idle loop
        score: Use generic idle loop
        s390: Use generic idle loop
        powerpc: Use generic idle loop
        parisc: Use generic idle loop
        openrisc: Use generic idle loop
        mn10300: Use generic idle loop
        mips: Use generic idle loop
        microblaze: Use generic idle loop
        ...
      8700c95a
    • Linus Torvalds's avatar
      Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 16fa94b5
      Linus Torvalds authored
      Pull scheduler changes from Ingo Molnar:
       "The main changes in this development cycle were:
      
         - full dynticks preparatory work by Frederic Weisbecker
      
         - factor out the cpu time accounting code better, by Li Zefan
      
         - multi-CPU load balancer cleanups and improvements by Joonsoo Kim
      
         - various smaller fixes and cleanups"
      
      * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (45 commits)
        sched: Fix init NOHZ_IDLE flag
        sched: Prevent to re-select dst-cpu in load_balance()
        sched: Rename load_balance_tmpmask to load_balance_mask
        sched: Move up affinity check to mitigate useless redoing overhead
        sched: Don't consider other cpus in our group in case of NEWLY_IDLE
        sched: Explicitly cpu_idle_type checking in rebalance_domains()
        sched: Change position of resched_cpu() in load_balance()
        sched: Fix wrong rq's runnable_avg update with rt tasks
        sched: Document task_struct::personality field
        sched/cpuacct/UML: Fix header file dependency bug on the UML build
        cgroup: Kill subsys.active flag
        sched/cpuacct: No need to check subsys active state
        sched/cpuacct: Initialize cpuacct subsystem earlier
        sched/cpuacct: Initialize root cpuacct earlier
        sched/cpuacct: Allocate per_cpu cpuusage for root cpuacct statically
        sched/cpuacct: Clean up cpuacct.h
        sched/cpuacct: Remove redundant NULL checks in cpuacct_acount_field()
        sched/cpuacct: Remove redundant NULL checks in cpuacct_charge()
        sched/cpuacct: Add cpuacct_acount_field()
        sched/cpuacct: Add cpuacct_init()
        ...
      16fa94b5
    • Linus Torvalds's avatar
      Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e0972916
      Linus Torvalds authored
      Pull perf updates from Ingo Molnar:
       "Features:
      
         - Add "uretprobes" - an optimization to uprobes, like kretprobes are
           an optimization to kprobes.  "perf probe -x file sym%return" now
           works like kretprobes.  By Oleg Nesterov.
      
         - Introduce per core aggregation in 'perf stat', from Stephane
           Eranian.
      
         - Add memory profiling via PEBS, from Stephane Eranian.
      
         - Event group view for 'annotate' in --stdio, --tui and --gtk, from
           Namhyung Kim.
      
         - Add support for AMD NB and L2I "uncore" counters, by Jacob Shin.
      
         - Add Ivy Bridge-EP uncore support, by Zheng Yan
      
         - IBM zEnterprise EC12 oprofile support patchlet from Robert Richter.
      
         - Add perf test entries for checking breakpoint overflow signal
           handler issues, from Jiri Olsa.
      
         - Add perf test entry for for checking number of EXIT events, from
           Namhyung Kim.
      
         - Add perf test entries for checking --cpu in record and stat, from
           Jiri Olsa.
      
         - Introduce perf stat --repeat forever, from Frederik Deweerdt.
      
         - Add --no-demangle to report/top, from Namhyung Kim.
      
         - PowerPC fixes plus a couple of cleanups/optimizations in uprobes
           and trace_uprobes, by Oleg Nesterov.
      
        Various fixes and refactorings:
      
         - Fix dependency of the python binding wrt libtraceevent, from
           Naohiro Aota.
      
         - Simplify some perf_evlist methods and to allow 'stat' to share code
           with 'record' and 'trace', by Arnaldo Carvalho de Melo.
      
         - Remove dead code in related to libtraceevent integration, from
           Namhyung Kim.
      
         - Revert "perf sched: Handle PERF_RECORD_EXIT events" to get 'perf
           sched lat' back working, by Arnaldo Carvalho de Melo
      
         - We don't use Newt anymore, just plain libslang, by Arnaldo Carvalho
           de Melo.
      
         - Kill a bunch of die() calls, from Namhyung Kim.
      
         - Fix build on non-glibc systems due to libio.h absence, from Cody P
           Schafer.
      
         - Remove some perf_session and tracing dead code, from David Ahern.
      
         - Honor parallel jobs, fix from Borislav Petkov
      
         - Introduce tools/lib/lk library, initially just removing duplication
           among tools/perf and tools/vm.  from Borislav Petkov
      
        ... and many more I missed to list, see the shortlog and git log for
        more details."
      
      * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (136 commits)
        perf/x86/intel/P4: Robistify P4 PMU types
        perf/x86/amd: Fix AMD NB and L2I "uncore" support
        perf/x86/amd: Remove old-style NB counter support from perf_event_amd.c
        perf/x86: Check all MSRs before passing hw check
        perf/x86/amd: Add support for AMD NB and L2I "uncore" counters
        perf/x86/intel: Add Ivy Bridge-EP uncore support
        perf/x86/intel: Fix SNB-EP CBO and PCU uncore PMU filter management
        perf/x86: Avoid kfree() in CPU_{STARTING,DYING}
        uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty
        uprobes/tracing: Don't pass addr=ip to perf_trace_buf_submit()
        uprobes/tracing: Change create_trace_uprobe() to support uretprobes
        uprobes/tracing: Make seq_printf() code uretprobe-friendly
        uprobes/tracing: Make register_uprobe_event() paths uretprobe-friendly
        uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly
        uprobes/tracing: Introduce is_ret_probe() and uretprobe_dispatcher()
        uprobes/tracing: Introduce uprobe_{trace,perf}_print() helpers
        uprobes/tracing: Generalize struct uprobe_trace_entry_head
        uprobes/tracing: Kill the pointless local_save_flags/preempt_count calls
        uprobes/tracing: Kill the pointless seq_print_ip_sym() call
        uprobes/tracing: Kill the pointless task_pt_regs() calls
        ...
      e0972916
    • Linus Torvalds's avatar
      Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1f889ec6
      Linus Torvalds authored
      Pull RCU updates from Ingo Molnar:
       "The main changes in this cycle are mostly related to preparatory work
        for the full-dynticks work:
      
         - Remove restrictions on no-CBs CPUs, make RCU_FAST_NO_HZ take
           advantage of numbered callbacks, do callback accelerations based on
           numbered callbacks.  Posted to LKML at
              https://lkml.org/lkml/2013/3/18/960
      
         - RCU documentation updates.  Posted to LKML at
              https://lkml.org/lkml/2013/3/18/570
      
         - Miscellaneous fixes.  Posted to LKML at
              https://lkml.org/lkml/2013/3/18/594"
      
      * 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (24 commits)
        rcu: Make rcu_accelerate_cbs() note need for future grace periods
        rcu: Abstract rcu_start_future_gp() from rcu_nocb_wait_gp()
        rcu: Rename n_nocb_gp_requests to need_future_gp
        rcu: Push lock release to rcu_start_gp()'s callers
        rcu: Repurpose no-CBs event tracing to future-GP events
        rcu: Rearrange locking in rcu_start_gp()
        rcu: Make RCU_FAST_NO_HZ take advantage of numbered callbacks
        rcu: Accelerate RCU callbacks at grace-period end
        rcu: Export RCU_FAST_NO_HZ parameters to sysfs
        rcu: Distinguish "rcuo" kthreads by RCU flavor
        rcu: Add event tracing for no-CBs CPUs' grace periods
        rcu: Add event tracing for no-CBs CPUs' callback registration
        rcu: Introduce proper blocking to no-CBs kthreads GP waits
        rcu: Provide compile-time control for no-CBs CPUs
        rcu: Tone down debugging during boot-up and shutdown.
        rcu: Add softirq-stall indications to stall-warning messages
        rcu: Documentation update
        rcu: Make bugginess of code sample more evident
        rcu: Fix hlist_bl_set_first_rcu() annotation
        rcu: Delete unused rcu_node "wakemask" field
        ...
      1f889ec6
    • Steven Rostedt's avatar
      tracing: Fix small merge bug · 6c24499f
      Steven Rostedt authored
      During the 3.10 merge, a conflict happened and the resolution was
      almost, but not quite, correct. An if statement was reversed.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      [ Duh. That was just silly of me  - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6c24499f
    • Linus Torvalds's avatar
      Merge tag 'localmodconfig-v3.10' of... · 500fcbc4
      Linus Torvalds authored
      Merge tag 'localmodconfig-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig
      
      Pull localmodconfig changes from Steven Rostedt:
       "A bug was recently found in the make localmodconfig where it would
        miss dependencies of config files are include in other config files
        inside an if statement.
      
        Also added a debug print that helped in solving this bug."
      
      * tag 'localmodconfig-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig:
        localmodconfig: Process source kconfig files as they are found
        localmodconfig: Add debug prints for dependencies of module configs
      500fcbc4
    • Mauro Carvalho Chehab's avatar
      Merge branch 'devel-for-v3.10' into v4l_for_linus · df90e225
      Mauro Carvalho Chehab authored
      * patchwork: (831 commits)
        [media] cx88: make core less verbose
        [media] em28xx: fix oops at em28xx_dvb_bus_ctrl()
        [media] s5c73m3: fix indentation of the help section in Kconfig
        [media] cx25821-alsa: get rid of a __must_check warning
        [media] cx25821-video: declare cx25821_vidioc_s_std as static
        [media] cx25821-video: remove maxw from cx25821_vidioc_try_fmt_vid_cap
        [media] r820t: Remove a warning for an unused value
        [media] dib0090: Fix a warning at dib0090_set_EFUSE
        [media] dib8000: fix a warning
        [media] dib8000: Fix sub-channel range
        [media] dib8000: store dtv_property_cache in a temp var
        [media] dib8000: warning fix: declare internal functions as static
        [media] r820t: quiet gcc warning on n_ring
        [media] r820t: memory leak in release()
        [media] r820t: precendence bug in r820t_xtal_check()
        [media] videodev2.h: Remove the unused old V4L1 buffer types
        [media] anysee: Grammar s/report the/report to/
        [media] anysee: Initialize ret = 0 in anysee_frontend_attach()
        [media] media: videobuf2: fix the length check for mmap
        [media] em28xx: save isoc endpoint number for DVB only if endpoint has alt settings with xMaxPacketSize != 0
        ...
      
      Conflicts:
      	drivers/media/pci/cx25821/cx25821-video.c
      	drivers/media/platform/Kconfig
      df90e225
    • Mauro Carvalho Chehab's avatar
      Merge tag 'v3.9' into v4l_for_linus · aad797c8
      Mauro Carvalho Chehab authored
      Linux 3.9
      
      * tag 'v3.9': (1099 commits)
        Linux 3.9
        vm: add no-mmu vm_iomap_memory() stub
        efivars: only check for duplicates on the registered list
        TTY: fix atime/mtime regression
        aio: fix possible invalid memory access when DEBUG is enabled
        parisc: use spin_lock_irqsave/spin_unlock_irqrestore for PTE updates
        parisc: disable -mlong-calls compiler option for kernel modules
        parisc: uaccess: fix compiler warnings caused by __put_user casting
        parisc: Change kunmap macro to static inline function
        parisc: Provide __ucmpdi2 to resolve undefined references in 32 bit builds.
        sparc64: Fix missing put_cpu_var() in tlb_batch_add_one() when not batching.
        Revert "gpio: pxa: set initcall level to module init"
        efi: Check EFI revision in setup_efi_vars
        x86, efi: Fix a build warning
        Revert "MIPS: page.h: Provide more readable definition for PAGE_MASK."
        kernel/hz.bc: ignore.
        Linux 3.9-rc8
        events: Protect access via task_subsys_state_check()
        net: fix incorrect credentials passing
        x86, microcode: Verify the family before dispatching microcode patching
        ...
      aad797c8
    • Jiri Kosina's avatar
    • Jiri Kosina's avatar
      047dff63
    • Jiri Kosina's avatar
      Merge branch 'for-3.10/mt-hybrid-finger-pen' into for-linus · 72c16d9a
      Jiri Kosina authored
      Conflicts:
      	drivers/hid/hid-multitouch.c
      72c16d9a
    • Jiri Kosina's avatar
      Merge branches 'for-3.10/appleir', 'for-3.10/hid-debug',... · 4f5a8104
      Jiri Kosina authored
      Merge branches 'for-3.10/appleir', 'for-3.10/hid-debug', 'for-3.10/hid-driver-transport-cleanups', 'for-3.10/i2c-hid' and 'for-3.10/logitech' into for-linus
      4f5a8104
    • Jiri Kosina's avatar
      HID: protect hid_debug_list · 2353f2be
      Jiri Kosina authored
      Accesses to hid_device->hid_debug_list are not serialized properly, which
      could result in SMP concurrency issues when HID debugfs events are accessesed
      by multiple userspace processess.
      
      Serialize all the list operations by a mutex.
      
      Spotted by Al Viro.
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      2353f2be
    • Benjamin Tissoires's avatar
      HID: debug: break out hid_dump_report() into hid-debug · a5f04b9d
      Benjamin Tissoires authored
      No semantic changes, but hid_dump_report should be in hid-debug.c, not
      in hid-core.c
      Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      a5f04b9d
    • Linus Torvalds's avatar
      Merge branch 'akpm' (incoming from Andrew) · 56847d85
      Linus Torvalds authored
      Merge second batch of fixes from Andrew Morton:
      
       - various misc bits
      
       - some printk updates
      
       - a new "SRAM" driver.
      
       - MAINTAINERS updates
      
       - the backlight driver queue
      
       - checkpatch updates
      
       - a few init/ changes
      
       - a huge number of drivers/rtc changes
      
       - fatfs updates
      
       - some lib/idr.c work
      
       - some renaming of the random driver interfaces
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (285 commits)
        net: rename random32 to prandom
        net/core: remove duplicate statements by do-while loop
        net/core: rename random32() to prandom_u32()
        net/netfilter: rename random32() to prandom_u32()
        net/sched: rename random32() to prandom_u32()
        net/sunrpc: rename random32() to prandom_u32()
        scsi: rename random32() to prandom_u32()
        lguest: rename random32() to prandom_u32()
        uwb: rename random32() to prandom_u32()
        video/uvesafb: rename random32() to prandom_u32()
        mmc: rename random32() to prandom_u32()
        drbd: rename random32() to prandom_u32()
        kernel/: rename random32() to prandom_u32()
        mm/: rename random32() to prandom_u32()
        lib/: rename random32() to prandom_u32()
        x86: rename random32() to prandom_u32()
        x86: pageattr-test: remove srandom32 call
        uuid: use prandom_bytes()
        raid6test: use prandom_bytes()
        sctp: convert sctp_assoc_set_id() to use idr_alloc_cyclic()
        ...
      56847d85
    • Linus Torvalds's avatar
      Merge branch 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 191a7120
      Linus Torvalds authored
      Pull cgroup updates from Tejun Heo:
      
       - Fixes and a lot of cleanups.  Locking cleanup is finally complete.
         cgroup_mutex is no longer exposed to individual controlelrs which
         used to cause nasty deadlock issues.  Li fixed and cleaned up quite a
         bit including long standing ones like racy cgroup_path().
      
       - device cgroup now supports proper hierarchy thanks to Aristeu.
      
       - perf_event cgroup now supports proper hierarchy.
      
       - A new mount option "__DEVEL__sane_behavior" is added.  As indicated
         by the name, this option is to be used for development only at this
         point and generates a warning message when used.  Unfortunately,
         cgroup interface currently has too many brekages and inconsistencies
         to implement a consistent and unified hierarchy on top.  The new flag
         is used to collect the behavior changes which are necessary to
         implement consistent unified hierarchy.  It's likely that this flag
         won't be used verbatim when it becomes ready but will be enabled
         implicitly along with unified hierarchy.
      
         The option currently disables some of broken behaviors in cgroup core
         and also .use_hierarchy switch in memcg (will be routed through -mm),
         which can be used to make very unusual hierarchy where nesting is
         partially honored.  It will also be used to implement hierarchy
         support for blk-throttle which would be impossible otherwise without
         introducing a full separate set of control knobs.
      
         This is essentially versioning of interface which isn't very nice but
         at this point I can't see any other options which would allow keeping
         the interface the same while moving towards hierarchy behavior which
         is at least somewhat sane.  The planned unified hierarchy is likely
         to require some level of adaptation from userland anyway, so I think
         it'd be best to take the chance and update the interface such that
         it's supportable in the long term.
      
         Maintaining the existing interface does complicate cgroup core but
         shouldn't put too much strain on individual controllers and I think
         it'd be manageable for the foreseeable future.  Maybe we'll be able
         to drop it in a decade.
      
      Fix up conflicts (including a semantic one adding a new #include to ppc
      that was uncovered by header the file changes) as per Tejun.
      
      * 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: (45 commits)
        cpuset: fix compile warning when CONFIG_SMP=n
        cpuset: fix cpu hotplug vs rebuild_sched_domains() race
        cpuset: use rebuild_sched_domains() in cpuset_hotplug_workfn()
        cgroup: restore the call to eventfd->poll()
        cgroup: fix use-after-free when umounting cgroupfs
        cgroup: fix broken file xattrs
        devcg: remove parent_cgroup.
        memcg: force use_hierarchy if sane_behavior
        cgroup: remove cgrp->top_cgroup
        cgroup: introduce sane_behavior mount option
        move cgroupfs_root to include/linux/cgroup.h
        cgroup: convert cgroupfs_root flag bits to masks and add CGRP_ prefix
        cgroup: make cgroup_path() not print double slashes
        Revert "cgroup: remove bind() method from cgroup_subsys."
        perf: make perf_event cgroup hierarchical
        cgroup: implement cgroup_is_descendant()
        cgroup: make sure parent won't be destroyed before its children
        cgroup: remove bind() method from cgroup_subsys.
        devcg: remove broken_hierarchy tag
        cgroup: remove cgroup_lock_is_held()
        ...
      191a7120
    • Linus Torvalds's avatar
      Merge branch 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 46d9be3e
      Linus Torvalds authored
      Pull workqueue updates from Tejun Heo:
       "A lot of activities on workqueue side this time.  The changes achieve
        the followings.
      
         - WQ_UNBOUND workqueues - the workqueues which are per-cpu - are
           updated to be able to interface with multiple backend worker pools.
           This involved a lot of churning but the end result seems actually
           neater as unbound workqueues are now a lot closer to per-cpu ones.
      
         - The ability to interface with multiple backend worker pools are
           used to implement unbound workqueues with custom attributes.
           Currently the supported attributes are the nice level and CPU
           affinity.  It may be expanded to include cgroup association in
           future.  The attributes can be specified either by calling
           apply_workqueue_attrs() or through /sys/bus/workqueue/WQ_NAME/* if
           the workqueue in question is exported through sysfs.
      
           The backend worker pools are keyed by the actual attributes and
           shared by any workqueues which share the same attributes.  When
           attributes of a workqueue are changed, the workqueue binds to the
           worker pool with the specified attributes while leaving the work
           items which are already executing in its previous worker pools
           alone.
      
           This allows converting custom worker pool implementations which
           want worker attribute tuning to use workqueues.  The writeback pool
           is already converted in block tree and there are a couple others
           are likely to follow including btrfs io workers.
      
         - WQ_UNBOUND's ability to bind to multiple worker pools is also used
           to make it NUMA-aware.  Because there's no association between work
           item issuer and the specific worker assigned to execute it, before
           this change, using unbound workqueue led to unnecessary cross-node
           bouncing and it couldn't be helped by autonuma as it requires tasks
           to have implicit node affinity and workers are assigned randomly.
      
           After these changes, an unbound workqueue now binds to multiple
           NUMA-affine worker pools so that queued work items are executed in
           the same node.  This is turned on by default but can be disabled
           system-wide or for individual workqueues.
      
           Crypto was requesting NUMA affinity as encrypting data across
           different nodes can contribute noticeable overhead and doing it
           per-cpu was too limiting for certain cases and IO throughput could
           be bottlenecked by one CPU being fully occupied while others have
           idle cycles.
      
        While the new features required a lot of changes including
        restructuring locking, it didn't complicate the execution paths much.
        The unbound workqueue handling is now closer to per-cpu ones and the
        new features are implemented by simply associating a workqueue with
        different sets of backend worker pools without changing queue,
        execution or flush paths.
      
        As such, even though the amount of change is very high, I feel
        relatively safe in that it isn't likely to cause subtle issues with
        basic correctness of work item execution and handling.  If something
        is wrong, it's likely to show up as being associated with worker pools
        with the wrong attributes or OOPS while workqueue attributes are being
        changed or during CPU hotplug.
      
        While this creates more backend worker pools, it doesn't add too many
        more workers unless, of course, there are many workqueues with unique
        combinations of attributes.  Assuming everything else is the same,
        NUMA awareness costs an extra worker pool per NUMA node with online
        CPUs.
      
        There are also a couple things which are being routed outside the
        workqueue tree.
      
         - block tree pulled in workqueue for-3.10 so that writeback worker
           pool can be converted to unbound workqueue with sysfs control
           exposed.  This simplifies the code, makes writeback workers
           NUMA-aware and allows tuning nice level and CPU affinity via sysfs.
      
         - The conversion to workqueue means that there's no 1:1 association
           between a specific worker, which makes writeback folks unhappy as
           they want to be able to tell which filesystem caused a problem from
           backtrace on systems with many filesystems mounted.  This is
           resolved by allowing work items to set debug info string which is
           printed when the task is dumped.  As this change involves unifying
           implementations of dump_stack() and friends in arch codes, it's
           being routed through Andrew's -mm tree."
      
      * 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: (84 commits)
        workqueue: use kmem_cache_free() instead of kfree()
        workqueue: avoid false negative WARN_ON() in destroy_workqueue()
        workqueue: update sysfs interface to reflect NUMA awareness and a kernel param to disable NUMA affinity
        workqueue: implement NUMA affinity for unbound workqueues
        workqueue: introduce put_pwq_unlocked()
        workqueue: introduce numa_pwq_tbl_install()
        workqueue: use NUMA-aware allocation for pool_workqueues
        workqueue: break init_and_link_pwq() into two functions and introduce alloc_unbound_pwq()
        workqueue: map an unbound workqueues to multiple per-node pool_workqueues
        workqueue: move hot fields of workqueue_struct to the end
        workqueue: make workqueue->name[] fixed len
        workqueue: add workqueue->unbound_attrs
        workqueue: determine NUMA node of workers accourding to the allowed cpumask
        workqueue: drop 'H' from kworker names of unbound worker pools
        workqueue: add wq_numa_tbl_len and wq_numa_possible_cpumask[]
        workqueue: move pwq_pool_locking outside of get/put_unbound_pool()
        workqueue: fix memory leak in apply_workqueue_attrs()
        workqueue: fix unbound workqueue attrs hashing / comparison
        workqueue: fix race condition in unbound workqueue free path
        workqueue: remove pwq_lock which is no longer used
        ...
      46d9be3e