1. 04 7月, 2008 1 次提交
  2. 12 6月, 2008 1 次提交
    • D
      net: Eliminate flush_scheduled_work() calls while RTNL is held. · 4bb073c0
      David S. Miller 提交于
      If the RTNL is held when we invoke flush_scheduled_work() we could
      deadlock.  One such case is linkwatch, it is a work struct which tries
      to grab the RTNL semaphore.
      
      The most common case are net driver ->stop() methods.  The
      simplest conversion is to instead use cancel_{delayed_}work_sync()
      explicitly on the various work struct the driver uses.
      
      This is an OK transformation because these work structs are doing
      things like resetting the chip, restarting link negotiation, and so
      forth.  And if we're bringing down the device, we're about to turn the
      chip off and reset it anways.  So if we cancel a pending work event,
      that's fine here.
      
      Some drivers were working around this deadlock by using a msleep()
      polling loop of some sort, and those cases are converted to instead
      use cancel_{delayed_}work_sync() as well.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4bb073c0
  3. 11 6月, 2008 1 次提交
  4. 22 5月, 2008 2 次提交
    • J
      25c16fff
    • B
      ehea: Fix use after free on reboot · 7fb1c2ac
      Brian King 提交于
      Fixes the following use after free oops:
      
      ehea: Reboot: freeing all eHEA resources
      Unable to handle kernel paging request for data at address 0x6b6b6b6b6b6b6c5b
      Faulting instruction address: 0xd000000000354488
      cpu 0x0: Vector: 300 (Data Access) at [c00000002ec6f310]
          pc: d000000000354488: .ehea_shutdown_single_port+0x50/0x78 [ehea]
          lr: d00000000035447c: .ehea_shutdown_single_port+0x44/0x78 [ehea]
          sp: c00000002ec6f590
         msr: 8000000000009032
         dar: 6b6b6b6b6b6b6c5b
       dsisr: 40000000
        current = 0xc0000000281412e0
        paca    = 0xc0000000006df300
          pid   = 10930, comm = reboot
      enter ? for help
      [c00000002ec6f590] d00000000035d64c .ehea_remove+0x44/0x124 [ehea] (unreliable)
      [c00000002ec6f630] c000000000319f88 .of_platform_device_remove+0x40/0x58
      [c00000002ec6f6a0] c000000000291018 .__device_release_driver+0xb0/0xf0
      [c00000002ec6f730] c000000000291120 .driver_detach+0xc8/0xfc
      [c00000002ec6f7c0] c00000000028fe24 .bus_remove_driver+0xb4/0x114
      [c00000002ec6f850] c000000000291768 .driver_unregister+0x54/0x74
      [c00000002ec6f8e0] c00000000031a0c8 .of_unregister_driver+0x14/0x28
      [c00000002ec6f950] c000000000023ba0 .ibmebus_unregister_driver+0x10/0x24
      [c00000002ec6f9c0] d000000000354180 .ehea_reboot_notifier+0x30/0x4c [ehea]
      [c00000002ec6fa40] c0000000003c95a8 .notifier_call_chain+0x5c/0xcc
      [c00000002ec6fae0] c000000000082cd4 .__blocking_notifier_call_chain+0x70/0xb0
      [c00000002ec6fb90] c000000000075cf8 .kernel_restart_prepare+0x24/0x58
      [c00000002ec6fc10] c000000000075f0c .kernel_restart+0x20/0x6c
      [c00000002ec6fc90] c000000000078674 .sys_reboot+0x1d4/0x290
      [c00000002ec6fe30] c0000000000086ac syscall_exit+0x0/0x40
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      7fb1c2ac
  5. 13 5月, 2008 1 次提交
  6. 25 4月, 2008 1 次提交
  7. 12 4月, 2008 1 次提交
  8. 29 3月, 2008 5 次提交
  9. 26 3月, 2008 1 次提交
  10. 24 2月, 2008 1 次提交
    • T
      ehea: add kdump support · 21eee2dd
      Thomas Klein 提交于
      This patch adds kdump support to the ehea driver. As the firmware doesn't free
      resource handles automatically, the driver has to run an as simple as possible
      free resource function in case of a crash shutdown. The function iterates over
      two arrays freeing all resource handles which are stored there. The arrays are
      kept up-to-date during normal runtime. The crash handler fn is triggered by the
      recently introduced PPC crash shutdown reg/unreg functions.
      Signed-off-by: NThomas Klein <tklein@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      21eee2dd
  11. 03 2月, 2008 6 次提交
  12. 24 11月, 2007 2 次提交
  13. 29 10月, 2007 1 次提交
  14. 25 10月, 2007 1 次提交
  15. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  16. 17 10月, 2007 1 次提交
  17. 11 10月, 2007 7 次提交
  18. 13 9月, 2007 2 次提交
  19. 25 8月, 2007 3 次提交
  20. 08 8月, 2007 1 次提交