1. 17 8月, 2011 1 次提交
    • L
      pstore: defer inserting OOPS entries into pstore · 6dda9266
      Luck, Tony 提交于
      Life is simple for all the kernel terminating types of kmsg_dump
      call backs - pstore just saves the tail end of the console log. But
      for "oops" the situation is more complex - the kernel may carry on
      running (possibly for ever).  So we'd like to make the logged copy
      of the oops appear in the pstore filesystem - so that the user has
      a handle to clear the entry from the persistent backing store (if
      we don't, the store may fill with "oops" entries (that are also
      safely stashed in /var/log/messages) leaving no space for real
      errors.
      
      Current code calls pstore_mkfile() immediately. But this may
      not be safe. The oops could have happened with arbitrary locks
      held, or in interrupt or NMI context. So allocating memory and
      calling into generic filesystem code seems unwise.
      
      This patch defers making the entry appear. At the time
      of the oops, we merely set a flag "pstore_new_entry" noting that
      a new entry has been added. A periodic timer checks once a minute
      to see if the flag is set - if so, it schedules a work queue to
      rescan the backing store and make all new entries appear in the
      pstore filesystem.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      6dda9266
  2. 15 8月, 2011 3 次提交
  3. 14 8月, 2011 27 次提交
  4. 13 8月, 2011 9 次提交
    • L
      Merge branch 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6 · 73e0881d
      Linus Torvalds 提交于
      * 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6:
        dt: add empty of_get_property for non-dt
      73e0881d
    • L
      Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · e211bc8d
      Linus Torvalds 提交于
      * 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (30 commits)
        USB: Serial: Add PID(0xF7C0) to FTDI SIO driver for a zeitcontrol-device
        USB: Serial: Add device ID for Sierra Wireless MC8305
        USB: Serial: Added device ID for Qualcomm Modem in Sagemcom's HiLo3G
        usb/host/pci-quirks.c: correct annotation of `ehci_dmi_nohandoff_table'
        USB: option driver: add PID for Vodafone-Huawei K4511
        USB: option driver: add PID for Vodafone-Huawei K4510
        USB: option driver: add PID for Vodafone-Huawei K3771
        USB: option driver: add PID for Vodafone-Huawei K3770
        usb: serial: ftdi_sio.c: For the FT232H FTDI_SIO_SET_BAUDRATE_REQUEST, index needs to be shifted too
        usb/isp1760: Added missing call to usb_hcd_check_unlink_urb() during unlink
        USB: EHCI: Fix test mode sequence
        USB: ftdi_sio: fix minor typo in get_ftdi_divisor
        USB: at91_udc: include linux/prefetch.h explicitly
        USB: usb-storage: unusual_devs entry for ARM V2M motherboard.
        usb/ehci-mxc: add missing inclusion of mach/hardware.h
        USB: assign instead of equal in usbtmc.c
        usb: renesas_usbhs: fixup usbhsg_for_each_uep 1st pos
        usb: renesas_usbhs: fix DMA build by including dma-mapping.h
        usb: gadget: net2272 - Correct includes
        usb: musb: fix oops on musb_gadget_pullup
        ...
      e211bc8d
    • L
      Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 · 8c70aac0
      Linus Torvalds 提交于
      * 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
        zcache: Fix build error when sysfs is not defined
        zcache: Use div_u64 for 64-bit division
        staging:rts_pstor: fix thread synchronization flow
        drivers:staging:solo6x10:add the missed slab.h
        staging: zcache: include module.h for MODULE_LICENSE
        drivers/staging/hv/blkvsc_drv.c: eliminate NULL pointer dereference
        Staging: Add clk API note to nvec/TODO
        drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c: adjust array index
        staging: more missing slab.h inclusions
        drivers/staging/solo6x10/p2m.c needs slab.h
        drivers/staging/solo6x10/core.c needs slab.h
        drivers/staging/dt3155v4l/dt3155v4l.c needs slab.h
        drivers/staging/speakup/devsynth.c: fix "buffer size is not provably correct" error
        Staging: iio: add some unlocks to raw_read() functions
        staging: ft1000_proc needs asm/io.h for inw/outw on sparc
        staging: rtl8192u: declare MODULE_FIRMWARE
        gma500: Fix clashes with DRM updates
        staging: zcache: module is GPL
        staging: fix zcache building
      8c70aac0
    • L
      Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-tip · 06e727d2
      Linus Torvalds 提交于
      * 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-tip:
        x86-64: Rework vsyscall emulation and add vsyscall= parameter
        x86-64: Wire up getcpu syscall
        x86: Remove unnecessary compile flag tweaks for vsyscall code
        x86-64: Add vsyscall:emulate_vsyscall trace event
        x86-64: Add user_64bit_mode paravirt op
        x86-64, xen: Enable the vvar mapping
        x86-64: Work around gold bug 13023
        x86-64: Move the "user" vsyscall segment out of the data segment.
        x86-64: Pad vDSO to a page boundary
      06e727d2
    • L
      Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs · e68ff9cd
      Linus Torvalds 提交于
      * 'for-linus' of git://oss.sgi.com/xfs/xfs:
        xfs: replace xfs_buf_geterror() with bp->b_error
        xfs: Check the return value of xfs_buf_read() for NULL
        "xfs: fix error handling for synchronous writes" revisited
        xfs: set cursor in xfs_ail_splice() even when AIL was empty
        xfs: Remove the macro XFS_BUFTARG_NAME
        xfs: Remove the macro XFS_BUF_TARGET
        xfs: Remove the macro XFS_BUF_SET_TARGET
        Replace the macro XFS_BUF_ISPINNED with helper xfs_buf_ispinned
        xfs: Remove the macro XFS_BUF_SET_PTR
        xfs: Remove the macro XFS_BUF_PTR
        xfs: Remove macro XFS_BUF_SET_START
        xfs: Remove macro XFS_BUF_HOLD
        xfs: Remove macro XFS_BUF_BUSY and family
        xfs: Remove the macro XFS_BUF_ERROR and family
        xfs: Remove the macro XFS_BUF_BFLAGS
      e68ff9cd
    • L
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc · c44efbaa
      Linus Torvalds 提交于
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (32 commits)
        ARM: mmp: Change the way we use timer 0 as clockevent timer.
        ARM: mmp: Switch to using timer 1 as clocksource timer.
        ARM: mmp: Also start timer 1 on boot.
        ARM: pxa168/gplugd: free correct GPIO
        ARM: pxa168/gplugd: get rid of mfp-gplugd.h
        ARM: pxa: fix logic error in PJ4 iWMMXt handling
        mach-sa1100: fix PCI build problem
        omap: timer: Set dmtimer used as clocksource in autoreload mode
        OMAP3: am3517crane: remove NULL board_mux from board file
        arm: mach-omap2: mux: use kstrdup()
        arch:arm:plat-omap:iovmm: remove unused variable 'va'
        Update Nook Color machine 3284 to common Encore name
        am3505/3517: Various platform defines for UART4
        OMAP: hwmod: fix build break on non-OMAP4 multi-OMAP2 builds
        OMAP: Fix linking error in twl-common.c for OMAP2/3/4 only builds
        iMX: Fix build for iMX53
        ARM: mx5: board-cpuimx51.c fixup irq_to_gpio() usage
        OMAP2+: PM: SmartReflex: use put_sync_suspend for IRQ-safe disabling
        OMAP3: beagle: don't touch omap_device internals
        OMAP1: enable GENERIC_IRQ_CHIP
        ...
      c44efbaa
    • C
      xfs: replace xfs_buf_geterror() with bp->b_error · e5702805
      Chandra Seetharaman 提交于
      Since we just checked bp for NULL, it is ok to replace
      xfs_buf_geterror() with bp->b_error in these places.
      Signed-off-by: NChandra Seetharaman <sekharan@us.ibm.com>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      e5702805
    • C
      xfs: Check the return value of xfs_buf_read() for NULL · ac4d6888
      Chandra Seetharaman 提交于
      Check the return value of xfs_buf_read() for NULL and return ENOMEM
      if it is NULL.  This is necessary in a few spots to avoid subsequent
      code blindly dereferencing the null buffer pointer.
      Signed-off-by: NChandra Seetharaman <sekharan@us.ibm.com>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      ac4d6888
    • A
      Merge branch 'fixes' of... · 696314cf
      Arnd Bergmann 提交于
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into fixes
      696314cf