1. 19 3月, 2010 19 次提交
    • L
      Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze · 72287446
      Linus Torvalds 提交于
      * 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze: (27 commits)
        microblaze: entry.S use delay slot for return handlers
        microblaze: Save current task directly
        microblaze: Simplify entry.S - save/restore r3/r4 - ret_from_trap
        microblaze: PCI early support for noMMU system
        microblaze: Fix dma alloc and free coherent dma functions
        microblaze: Add consistent code
        microblaze: pgtable.h: move consistent functions
        microblaze: Remove ancient Kconfig option for consistent mapping
        microblaze: Remove VMALLOC_VMADDR
        microblaze: Add define for ASM_LOOP
        microblaze: Preliminary support for dma drivers
        microblaze: remove trailing space in messages
        microblaze: Use generic show_mem()
        microblaze: Change temp register for cmdline
        microblaze: Preliminary support for dma drivers
        microblaze: Move cache function to cache.c
        microblaze: Add support from PREEMPT
        microblaze: Add support for Xilinx PCI host bridge
        microblaze: Enable PCI, missing files
        microblaze: Add core PCI files
        ...
      72287446
    • L
      Merge branch 'for-linus' of git://neil.brown.name/md · 31cc1dd3
      Linus Torvalds 提交于
      * 'for-linus' of git://neil.brown.name/md:
        md: deal with merge_bvec_fn in component devices better.
      31cc1dd3
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 · 961cde93
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (69 commits)
        [SCSI] scsi_transport_fc: Fix synchronization issue while deleting vport
        [SCSI] bfa: Update the driver version to 2.1.2.1.
        [SCSI] bfa: Remove unused header files and did some cleanup.
        [SCSI] bfa: Handle SCSI IO underrun case.
        [SCSI] bfa: FCS and include file changes.
        [SCSI] bfa: Modified the portstats get/clear logic
        [SCSI] bfa: Replace bfa_get_attr() with specific APIs
        [SCSI] bfa: New portlog entries for events (FIP/FLOGI/FDISC/LOGO).
        [SCSI] bfa: Rename pport to fcport in BFA FCS.
        [SCSI] bfa: IOC fixes, check for IOC down condition.
        [SCSI] bfa: In MSIX mode, ignore spurious RME interrupts when FCoE ports are in FW mismatch state.
        [SCSI] bfa: Fix Command Queue (CPE) full condition check and ack CPE interrupt.
        [SCSI] bfa: IOC recovery fix in fcmode.
        [SCSI] bfa: AEN and byte alignment fixes.
        [SCSI] bfa: Introduce a link notification state machine.
        [SCSI] bfa: Added firmware save clear feature for BFA driver.
        [SCSI] bfa: FCS authentication related changes.
        [SCSI] bfa: PCI VPD, FIP and include file changes.
        [SCSI] bfa: Fix to copy fpma MAC when requested by user space application.
        [SCSI] bfa: RPORT state machine: direct attach mode fix.
        ...
      961cde93
    • L
      Merge branch 'perf-fixes-for-linus' of... · f82c37e7
      Linus Torvalds 提交于
      Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (35 commits)
        perf: Fix unexported generic perf_arch_fetch_caller_regs
        perf record: Don't try to find buildids in a zero sized file
        perf: export perf_trace_regs and perf_arch_fetch_caller_regs
        perf, x86: Fix hw_perf_enable() event assignment
        perf, ppc: Fix compile error due to new cpu notifiers
        perf: Make the install relative to DESTDIR if specified
        kprobes: Calculate the index correctly when freeing the out-of-line execution slot
        perf tools: Fix sparse CPU numbering related bugs
        perf_event: Fix oops triggered by cpu offline/online
        perf: Drop the obsolete profile naming for trace events
        perf: Take a hot regs snapshot for trace events
        perf: Introduce new perf_fetch_caller_regs() for hot regs snapshot
        perf/x86-64: Use frame pointer to walk on irq and process stacks
        lockdep: Move lock events under lockdep recursion protection
        perf report: Print the map table just after samples for which no map was found
        perf report: Add multiple event support
        perf session: Change perf_session post processing functions to take histogram tree
        perf session: Add storage for seperating event types in report
        perf session: Change add_hist_entry to take the tree root instead of session
        perf record: Add ID and to recorded event data when recording multiple events
        ...
      f82c37e7
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · c6b9e73f
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
        HID: avoid '\0' in hid debugfs events file
        HID: Add RGT Clutch Wheel clutch device id
        HID: ntrig: fix touch events
        HID: add quirk for UC-Logik WP4030 tablet
        HID: magicmouse: fix oops after device removal
      c6b9e73f
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable · 441f4058
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable: (30 commits)
        Btrfs: fix the inode ref searches done by btrfs_search_path_in_tree
        Btrfs: allow treeid==0 in the inode lookup ioctl
        Btrfs: return keys for large items to the search ioctl
        Btrfs: fix key checks and advance in the search ioctl
        Btrfs: buffer results in the space_info ioctl
        Btrfs: use __u64 types in ioctl.h
        Btrfs: fix search_ioctl key advance
        Btrfs: fix gfp flags masking in the compression code
        Btrfs: don't look at bio flags after submit_bio
        btrfs: using btrfs_stack_device_id() get devid
        btrfs: use memparse
        Btrfs: add a "df" ioctl for btrfs
        Btrfs: cache the extent state everywhere we possibly can V2
        Btrfs: cache ordered extent when completing io
        Btrfs: cache extent state in find_delalloc_range
        Btrfs: change the ordered tree to use a spinlock instead of a mutex
        Btrfs: finish read pages in the order they are submitted
        btrfs: fix btrfs_mkdir goto for no free objectids
        Btrfs: flush data on snapshot creation
        Btrfs: make df be a little bit more understandable
        ...
      441f4058
    • L
      Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 · 7c34691a
      Linus Torvalds 提交于
      * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
        NFS: ensure bdi_unregister is called on mount failure.
        NFS: Avoid a deadlock in nfs_release_page
        NFSv4: Don't ignore the NFS_INO_REVAL_FORCED flag in nfs_revalidate_inode()
        nfs4: Make the v4 callback service hidden
        nfs: fix unlikely memory leak
        rpc client can not deal with ENOSOCK, so translate it into ENOCONN
      7c34691a
    • L
      Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev · 5f87e54d
      Linus Torvalds 提交于
      * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        ahci: pp->active_link is not reliable when FBS is enabled
        ahci: use BIOS date in broken_suspend list
        ahci: add missing nv IDs
      5f87e54d
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 · 01da4705
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
        sound: sequencer: clean up remove bogus check
        ALSA: hda: Use LPIB and 6stack-dig for eMachines T5212
        ALSA: hda - Disable MSI for Nvidia controller
        ALSA: hda - Add PCI quirks for MSI NetOn AP1900 and Wind Top AE2220
        ALSA: hda - Fix secondary ADC of ALC260 basic model
        ALSA: hda - Add an error message for invalid mapping NID
        ALSA: hda - New Intel HDA controller
      01da4705
    • L
      Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight · 61d71807
      Linus Torvalds 提交于
      * 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
        backlight: panasonic-laptop - Fix incomplete registration failure handling
        backlight: msi-laptop, msi-wmi: fix incomplete registration failure handling
        backlight: blackfin - Fix missing registration failure handling
        backlight: classmate-laptop - Fix missing registration failure handling
        backlight: mbp_nvidia_bl - add five more MacBook variants
        backlight: Allow properties to be passed at registration
        backlight: Add backlight_device parameter to check_fb
        video: backlight/progear, fix pci device refcounting
        backlight: l4f00242t03: Fix module licence absence.
        backlight: Revert some const qualifiers
        backlight: Add Epson L4F00242T03 LCD driver
      61d71807
    • L
      Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds · 5dbc2f54
      Linus Torvalds 提交于
      * 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
        leds: Fix race between LED device uevent and actual attributes creation
        leds-gpio: fix default state handling on OF platforms
        leds: Add Dell Business Class Netbook LED driver
        leds: Kconfig cleanup
        leds: led-class.c - Quiet boot messages
        leds: make PCI device id constant
        leds: ALIX2: Add dependency to !GPIO_CS5335
      5dbc2f54
    • L
      Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs · 01d61d0d
      Linus Torvalds 提交于
      * 'for-linus' of git://oss.sgi.com/xfs/xfs:
        xfs: don't warn about page discards on shutdown
        xfs: use scalable vmap API
        xfs: remove old vmap cache
      01d61d0d
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 2e0c17d1
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (39 commits)
        gigaset: fix build failure
        bridge: Make first arg to deliver_clone const.
        bridge br_multicast: Don't refer to BR_INPUT_SKB_CB(skb)->mrouters_only without IGMP snooping.
        route: Fix caught BUG_ON during rt_secret_rebuild_oneshot()
        bridge br_multicast: Fix skb leakage in error path.
        bridge br_multicast: Fix handling of Max Response Code in IGMPv3 message.
        NET: netpoll, fix potential NULL ptr dereference
        tipc: fix lockdep warning on address assignment
        l2tp: Fix UDP socket reference count bugs in the pppol2tp driver
        smsc95xx: wait for PHY to complete reset during init
        l2tp: Fix oops in pppol2tp_xmit
        smsc75xx: SMSC LAN75xx USB gigabit ethernet adapter driver
        ne: Do not use slashes in irq name string
        NET: ksz884x, fix lock imbalance
        gigaset: correct range checking off by one error
        bridge: Fix br_forward crash in promiscuous mode
        bridge: Move NULL mdb check into br_mdb_ip_get
        ISDN: Add PCI ID for HFC-2S/4S Beronet Card PCIe
        net-2.6 [Bug-Fix][dccp]: fix oops caused after failed initialisation
        myri: remove dead code
        ...
      2e0c17d1
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · 7de4a9a7
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
        sunxvr1000: Add missing FB=y depenency.
        MAINTAINERS: Add entry for sparc serial drivers.
        drivers/serial/sunsab.c: adjust the constant used to initialize the interrupt_mask0 fields
      7de4a9a7
    • L
      Merge branch 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 · 1097d7ce
      Linus Torvalds 提交于
      * 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
        PCMCIA: resource, fix lock imbalance
        pcmcia: add important if statement
        pcmcia: re-route Cardbus IRQ to ISA on ti1130 bridges if necessary
        pcmcia: allow for cb_irq to differ from pci_dev's irq in yenta_socket
        pcmcia: honor saved flags in yenta_socket's I365_CSCINT register
        pcmcia: revert "irq probe can be done without risking an IRQ storm"
        pcmcia: pd6729, i82092: use parent (PCI) resources
        pcmcia/vrc4171: use local spinlock for device local lock.
      1097d7ce
    • C
      Btrfs: fix the inode ref searches done by btrfs_search_path_in_tree · 8ad6fcab
      Chris Mason 提交于
      This is used by the inode lookup ioctl to follow all the backrefs up
      to the subvol root.  But the search being done would sometimes land one
      past the last item in the leaf instead of finding the backref.
      
      This changes the search to look for the highest possible backref and hop
      back one item.  It also fixes a leaked path on failure to find the root.
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      8ad6fcab
    • C
      Btrfs: allow treeid==0 in the inode lookup ioctl · 1b53ac4d
      Chris Mason 提交于
      When a root id of 0 is sent to the inode lookup ioctl, it will
      use the root of the file we're ioctling and pass the root id
      back to userland along with the results.
      
      This allows userland to do searches based on that root later on.
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      1b53ac4d
    • C
      Btrfs: return keys for large items to the search ioctl · 90fdde14
      Chris Mason 提交于
      The search ioctl was skipping large items entirely (ones that are too
      big for the results buffer).  This changes things to at least copy
      the item header so that we can send information about the item back to
      userland.
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      90fdde14
    • C
      Btrfs: fix key checks and advance in the search ioctl · abc6e134
      Chris Mason 提交于
      The search ioctl was working well for finding tree roots, but using it for
      generic searches requires a few changes to how the keys are advanced.
      This treats the search control min fields for objectid, type and offset
      more like a key, where we drop the offset to zero once we bump the type,
      etc.
      
      The downside of this is that we are changing the min_type and min_offset
      fields during the search, and so the ioctl caller needs extra checks to make sure
      the keys in the result are the ones it wanted.
      
      This also changes key_in_sk to use btrfs_comp_cpu_keys, just to make
      things more readable.
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      abc6e134
  2. 18 3月, 2010 10 次提交
  3. 17 3月, 2010 11 次提交
    • F
      perf: Fix unexported generic perf_arch_fetch_caller_regs · dcd5c166
      Frederic Weisbecker 提交于
      perf_arch_fetch_caller_regs() is exported for the overriden x86
      version, but not for the generic weak version.
      
      As a general rule, weak functions should not have their symbol
      exported in the same file they are defined.
      
      So let's export it on trace_event_perf.c as it is used by trace
      events only.
      
      This fixes:
      
      	ERROR: ".perf_arch_fetch_caller_regs" [fs/xfs/xfs.ko] undefined!
      	ERROR: ".perf_arch_fetch_caller_regs" [arch/powerpc/platforms/cell/spufs/spufs.ko] undefined!
      
      -v2: And also only build it if trace events are enabled.
      -v3: Fix changelog mistake
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1268697902-9518-1-git-send-regression-fweisbec@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      dcd5c166
    • T
      Merge branch 'fix/hda' into for-linus · e04dd2d2
      Takashi Iwai 提交于
      e04dd2d2
    • T
      Merge branch 'fix/misc' into for-linus · 2a5e00ed
      Takashi Iwai 提交于
      2a5e00ed
    • D
      sunxvr1000: Add missing FB=y depenency. · f04e879b
      David S. Miller 提交于
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f04e879b
    • D
      bridge: Make first arg to deliver_clone const. · 87faf3cc
      David S. Miller 提交于
      Otherwise we get a warning from the call in br_forward().
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      87faf3cc
    • Y
      bridge br_multicast: Don't refer to BR_INPUT_SKB_CB(skb)->mrouters_only without IGMP snooping. · 32dec5dd
      YOSHIFUJI Hideaki / 吉藤英明 提交于
      Without CONFIG_BRIDGE_IGMP_SNOOPING,
      BR_INPUT_SKB_CB(skb)->mrouters_only is not appropriately
      initialized, so we can see garbage.
      
      A clear option to fix this is to set it even without that
      config, but we cannot optimize out the branch.
      
      Let's introduce a macro that returns value of mrouters_only
      and let it return 0 without CONFIG_BRIDGE_IGMP_SNOOPING.
      Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      32dec5dd
    • V
      route: Fix caught BUG_ON during rt_secret_rebuild_oneshot() · 858a18a6
      Vitaliy Gusev 提交于
      route: Fix caught BUG_ON during rt_secret_rebuild_oneshot()
      
      Call rt_secret_rebuild can cause BUG_ON(timer_pending(&net->ipv4.rt_secret_timer)) in
      add_timer as there is not any synchronization for call rt_secret_rebuild_oneshot()
      for the same net namespace.
      
      Also this issue affects to rt_secret_reschedule().
      
      Thus use mod_timer enstead.
      Signed-off-by: NVitaliy Gusev <vgusev@openvz.org>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      858a18a6
    • Y
    • Y
    • J
      NET: netpoll, fix potential NULL ptr dereference · 21edbb22
      Jiri Slaby 提交于
      Stanse found that one error path in netpoll_setup dereferences npinfo
      even though it is NULL. Avoid that by adding new label and go to that
      instead.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Daniel Borkmann <danborkmann@googlemail.com>
      Cc: David S. Miller <davem@davemloft.net>
      Acked-by: chavey@google.com
      Acked-by: NMatt Mackall <mpm@selenic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21edbb22
    • N
      tipc: fix lockdep warning on address assignment · a2f46ee1
      Neil Horman 提交于
      So in the forward porting of various tipc packages, I was constantly
      getting this lockdep warning everytime I used tipc-config to set a network
      address for the protocol:
      
      [ INFO: possible circular locking dependency detected ]
      2.6.33 #1
      tipc-config/1326 is trying to acquire lock:
      (ref_table_lock){+.-...}, at: [<ffffffffa0315148>] tipc_ref_discard+0x53/0xd4 [tipc]
      
      but task is already holding lock:
      (&(&entry->lock)->rlock#2){+.-...}, at: [<ffffffffa03150d5>] tipc_ref_lock+0x43/0x63 [tipc]
      
      which lock already depends on the new lock.
      
      the existing dependency chain (in reverse order) is:
      
      -> #1 (&(&entry->lock)->rlock#2){+.-...}:
      [<ffffffff8107b508>] __lock_acquire+0xb67/0xd0f
      [<ffffffff8107b78c>] lock_acquire+0xdc/0x102
      [<ffffffff8145471e>] _raw_spin_lock_bh+0x3b/0x6e
      [<ffffffffa03152b1>] tipc_ref_acquire+0xe8/0x11b [tipc]
      [<ffffffffa031433f>] tipc_createport_raw+0x78/0x1b9 [tipc]
      [<ffffffffa031450b>] tipc_createport+0x8b/0x125 [tipc]
      [<ffffffffa030f221>] tipc_subscr_start+0xce/0x126 [tipc]
      [<ffffffffa0308fb2>] process_signal_queue+0x47/0x7d [tipc]
      [<ffffffff81053e0c>] tasklet_action+0x8c/0xf4
      [<ffffffff81054bd8>] __do_softirq+0xf8/0x1cd
      [<ffffffff8100aadc>] call_softirq+0x1c/0x30
      [<ffffffff810549f4>] _local_bh_enable_ip+0xb8/0xd7
      [<ffffffff81054a21>] local_bh_enable_ip+0xe/0x10
      [<ffffffff81454d31>] _raw_spin_unlock_bh+0x34/0x39
      [<ffffffffa0308eb8>] spin_unlock_bh.clone.0+0x15/0x17 [tipc]
      [<ffffffffa0308f47>] tipc_k_signal+0x8d/0xb1 [tipc]
      [<ffffffffa0308dd9>] tipc_core_start+0x8a/0xad [tipc]
      [<ffffffffa01b1087>] 0xffffffffa01b1087
      [<ffffffff8100207d>] do_one_initcall+0x72/0x18a
      [<ffffffff810872fb>] sys_init_module+0xd8/0x23a
      [<ffffffff81009b42>] system_call_fastpath+0x16/0x1b
      
      -> #0 (ref_table_lock){+.-...}:
      [<ffffffff8107b3b2>] __lock_acquire+0xa11/0xd0f
      [<ffffffff8107b78c>] lock_acquire+0xdc/0x102
      [<ffffffff81454836>] _raw_write_lock_bh+0x3b/0x6e
      [<ffffffffa0315148>] tipc_ref_discard+0x53/0xd4 [tipc]
      [<ffffffffa03141ee>] tipc_deleteport+0x40/0x119 [tipc]
      [<ffffffffa0316e35>] release+0xeb/0x137 [tipc]
      [<ffffffff8139dbf4>] sock_release+0x1f/0x6f
      [<ffffffff8139dc6b>] sock_close+0x27/0x2b
      [<ffffffff811116f6>] __fput+0x12a/0x1df
      [<ffffffff811117c5>] fput+0x1a/0x1c
      [<ffffffff8110e49b>] filp_close+0x68/0x72
      [<ffffffff8110e552>] sys_close+0xad/0xe7
      [<ffffffff81009b42>] system_call_fastpath+0x16/0x1b
      
      Finally decided I should fix this.  Its a straightforward inversion,
      tipc_ref_acquire takes two locks in this order:
      ref_table_lock
      entry->lock
      
      while tipc_deleteport takes them in this order:
      entry->lock (via tipc_port_lock())
      ref_table_lock (via tipc_ref_discard())
      
      when the same entry is referenced, we get the above warning.  The fix is equally
      straightforward.  Theres no real relation between the entry->lock and the
      ref_table_lock (they just are needed at the same time), so move the entry->lock
      aquisition in tipc_ref_acquire down, after we unlock ref_table_lock (this is
      safe since the ref_table_lock guards changes to the reference table, and we've
      already claimed a slot there.  I've tested the below fix and confirmed that it
      clears up the lockdep issue
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      CC: Allan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a2f46ee1