1. 17 10月, 2012 1 次提交
    • S
      qeth: fix deadlock between recovery and bonding driver · 2efaf5ff
      Stefan Raspl 提交于
      The recovery thread, when failing, tears down the respective interface. To do
      so, it needs to obtain the rtnl lock first, as the interface configuration is
      changed.
      If another process tries to modify an interface setting at the same time, that
      process can obtain the rtnl lock first, but the respective callback in the qeth
      driver will block until recovery has completed - which cannot happen since the
      calling process already obtained it.
      In one particular case, the bonding driver acquired the rtnl lock to modify the
      card's MAC address, while the recovery failed at the same time due to the card
      being removed. Hence qeth_l2_set_mac_address (implicitly holding the rtnl lock)
      was waiting on qeth_l2_recover, which deadlocked when waiting on the rtnl lock.
      This patch uses rtnl_trylock instead of rtnl_lock in the recovery thread. If the
      lock cannot be obtained, the interface will be left up, but the card state
      remains in CARD_STATE_RECOVER, which will prevent any further activities on the
      card.
      Signed-off-by: NStefan Raspl <raspl@linux.vnet.ibm.com>
      Signed-off-by: NFrank Blaschka <frank.blaschka@de.ibm.com>
      Reviewed-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2efaf5ff
  2. 20 7月, 2012 1 次提交
    • H
      s390/comments: unify copyright messages and remove file names · a53c8fab
      Heiko Carstens 提交于
      Remove the file name from the comment at top of many files. In most
      cases the file name was wrong anyway, so it's rather pointless.
      
      Also unify the IBM copyright statement. We did have a lot of sightly
      different statements and wanted to change them one after another
      whenever a file gets touched. However that never happened. Instead
      people start to take the old/"wrong" statements to use as a template
      for new files.
      So unify all of them in one go.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      a53c8fab
  3. 17 7月, 2012 1 次提交
  4. 16 5月, 2012 1 次提交
  5. 08 3月, 2012 1 次提交
  6. 09 2月, 2012 1 次提交
  7. 21 12月, 2011 1 次提交
    • U
      qeth: forbid recovery during shutdown · f78ac2bb
      Ursula Braun 提交于
      A recovery does not make sense during shutdown and may even cause an
      error like this:
      
      qeth 0.0.f503: A recovery process has been started for the device
      Badness at drivers/s390/cio/qdio_main.c:1156
      Modules linked in: autofs4 sunrpc dm_multipath scsi_dh scsi_mod qeth_l3 ipv6 vmu
      r qeth qdio ccwgroup ext3 jbd mbcache dasd_eckd_mod dasd_mod dm_mirror dm_region
      _hash dm_log dm_mod [last unloaded: scsi_wait_scan]
      CPU: 3 Not tainted 2.6.32-202.el6.s390x #1
      Process qeth_recover (pid: 1498, task: 000000003efe2040, ksp: 000000003d5e3b80)
      Krnl PSW : 0404200180000000 000003c000be6da8 (qdio_int_handler+0x88/0x43c [qdio]
      )
                 R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:0 CC:2 PM:0 EA:3
      Krnl GPRS: ffffffffffff3bac 0000000000000005 0000000000000000 fffffffffffffff4
                 0000000000000000 000000000000000c 0000000000000000 000000003ca97000
                 0000000000000380 fffffffffffffff4 000000003f22d800 000000003f22c478
                 000003c000bdf000 000003c000bea270 000000003f447e10 000000003f447db0
      Krnl Code: 000003c000be6d9a: c21f00000004       clfi    %r1,4
                 000003c000be6da0: a7c40021           brc     12,3c000be6de2
                 000003c000be6da4: a7f40001           brc     15,3c000be6da6
                >000003c000be6da8: e320a0080004       lg      %r2,8(%r10)
                 000003c000be6dae: a7390003           lghi    %r3,3
                 000003c000be6db2: a72b0178           aghi    %r2,376
                 000003c000be6db6: a7490001           lghi    %r4,1
                 000003c000be6dba: a7590000           lghi    %r5,0
      Call Trace:
      ([<000000000080ee80>] __per_cpu_offset+0x0/0x200)
      [<00000000003d90e8>] ccw_device_call_handler+0x70/0xcc
      [<00000000003d83a2>] ccw_device_irq+0x82/0x180
      [<00000000003cc6a8>] do_IRQ+0x16c/0x1ec
      [<0000000000118abe>] io_return+0x0/0x8
      [<000003c000d04c74>] qeth_determine_capabilities+0x208/0x5cc [qeth]
      ([<000003c000d04c4a>] qeth_determine_capabilities+0x1de/0x5cc [qeth])
      [<000003c000d0a6e0>] qeth_core_hardsetup_card+0x160/0x1258 [qeth]
      [<000003c000f49f56>] __qeth_l3_set_online+0x132/0xb14 [qeth_l3]
      [<000003c000f4ac70>] qeth_l3_recover+0x168/0x224 [qeth_l3]
      [<000000000016e210>] kthread+0xa4/0xac
      [<0000000000109c6e>] kernel_thread_starter+0x6/0xc
      [<0000000000109c68>] kernel_thread_starter+0x0/0xc
      
      The patch forbids start of a recovery once qeth shutdown is running.
      Signed-off-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NFrank Blaschka <frank.blaschka@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f78ac2bb
  8. 09 12月, 2011 1 次提交
  9. 18 8月, 2011 1 次提交
  10. 13 8月, 2011 1 次提交
  11. 14 5月, 2011 2 次提交
  12. 27 2月, 2011 1 次提交
  13. 03 2月, 2011 1 次提交
  14. 16 1月, 2011 1 次提交
  15. 29 11月, 2010 1 次提交
  16. 04 10月, 2010 1 次提交
  17. 09 9月, 2010 1 次提交
  18. 24 7月, 2010 2 次提交
  19. 24 6月, 2010 2 次提交
  20. 18 5月, 2010 1 次提交
  21. 16 5月, 2010 1 次提交
  22. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  23. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  24. 17 3月, 2010 1 次提交
  25. 10 3月, 2010 1 次提交
  26. 26 1月, 2010 1 次提交
  27. 14 1月, 2010 2 次提交
  28. 30 12月, 2009 1 次提交
  29. 16 11月, 2009 3 次提交
  30. 05 10月, 2009 1 次提交
  31. 03 9月, 2009 1 次提交
  32. 02 9月, 2009 1 次提交
  33. 27 8月, 2009 1 次提交
  34. 06 7月, 2009 1 次提交