1. 07 10月, 2010 1 次提交
  2. 19 8月, 2010 1 次提交
  3. 17 8月, 2010 3 次提交
  4. 06 8月, 2010 1 次提交
  5. 28 7月, 2010 1 次提交
  6. 27 7月, 2010 2 次提交
  7. 21 7月, 2010 1 次提交
  8. 24 6月, 2010 1 次提交
  9. 03 6月, 2010 1 次提交
  10. 11 5月, 2010 1 次提交
  11. 08 5月, 2010 2 次提交
  12. 06 5月, 2010 1 次提交
  13. 05 5月, 2010 1 次提交
  14. 01 5月, 2010 1 次提交
  15. 29 4月, 2010 1 次提交
  16. 17 4月, 2010 1 次提交
  17. 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
  18. 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
  19. 16 2月, 2010 1 次提交
  20. 11 2月, 2010 1 次提交
  21. 28 1月, 2010 2 次提交
  22. 08 1月, 2010 1 次提交
  23. 29 12月, 2009 4 次提交
  24. 22 12月, 2009 1 次提交
  25. 11 12月, 2009 1 次提交
  26. 08 12月, 2009 1 次提交
  27. 19 11月, 2009 1 次提交
  28. 11 11月, 2009 1 次提交
  29. 07 11月, 2009 1 次提交
  30. 05 11月, 2009 1 次提交
    • L
      rtl8187: Fix kernel oops when device is removed when LEDS enabled · 37b12dd2
      Larry Finger 提交于
      As reported by Rick Farina (sidhayn@gmail.com), removing the RTL8187
      USB stick, or unloading the driver rtl8187 using rmmod will cause a
      kernel oops.  There are at least two forms of the failure, (1) BUG:
      Scheduling while atomic, and (2) a fatal kernel page fault. This
      problem is reported in Bugzilla #14539.
      
      This problem does not occur for kernel 2.6.31, but does for 2.6.32-rc2,
      thus it is technically a regression; however, bisection did not locate
      any faulty patch. The fix was found by comparing the faulty code in
      rtl8187 with p54usb.  My interpretation is that the handling of work
      queues in mac80211 changed enough to the LEDs to be unregistered
      before tasks on the work queues are cancelled. Previously, these
      actions could be done in either order.
      
      (Herton Ronaldo Krzesinski <herton@mandriva.com.br> reports that the
      code is the same in 2.6.31, so this may be a candidate for 2.6.31.x.
      -- JWL)
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Reported-by: NRick Farina <sidhayn@gmail.com>
      Tested-by: NRick Farina <sidhayn@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      37b12dd2
  31. 29 8月, 2009 2 次提交
    • H
      rtl8187: Implement rfkill support · ca9152e3
      Herton Ronaldo Krzesinski 提交于
      This change implements rfkill support for RTL8187B and RTL8187L devices,
      using new cfg80211 rfkill API.
      Acked-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Tested-by: NHin-Tak Leung <htl10@users.sourceforge.net>
      Signed-off-by: NHerton Ronaldo Krzesinski <herton@mandriva.com.br>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ca9152e3
    • H
      rtl8187: fix circular locking (rtl8187_stop/rtl8187_work) · 6a8171f2
      Herton Ronaldo Krzesinski 提交于
      Larry Finger reports following lockdep warning:
      
      [ INFO: possible circular locking dependency detected ]
      2.6.31-rc6-wl #201
      -------------------------------------------------------
      rfkill/30578 is trying to acquire lock:
       (&(&priv->work)->work#2){+.+...}, at: [<ffffffff81051215>]
      __cancel_work_timer+0xd9/0x222
      
      but task is already holding lock:
       (&priv->conf_mutex#2){+.+.+.}, at: [<ffffffffa064a024>]
      rtl8187_stop+0x31/0x364 [rtl8187]
      
      which lock already depends on the new lock.
      
      the existing dependency chain (in reverse order) is:
      
      -> #1 (&priv->conf_mutex#2){+.+.+.}:
             [<ffffffff81065957>] __lock_acquire+0x12d0/0x1614
             [<ffffffff81065d54>] lock_acquire+0xb9/0xdd
             [<ffffffff8127c32f>] mutex_lock_nested+0x56/0x2a8
             [<ffffffffa064a392>] rtl8187_work+0x3b/0xf2 [rtl8187]
             [<ffffffff81050758>] worker_thread+0x1fa/0x30a
             [<ffffffff81054ca5>] kthread+0x8f/0x97
             [<ffffffff8100cb7a>] child_rip+0xa/0x20
             [<ffffffffffffffff>] 0xffffffffffffffff
      
      -> #0 (&(&priv->work)->work#2){+.+...}:
             [<ffffffff8106568c>] __lock_acquire+0x1005/0x1614
             [<ffffffff81065d54>] lock_acquire+0xb9/0xdd
             [<ffffffff8105124e>] __cancel_work_timer+0x112/0x222
             [<ffffffff8105136b>] cancel_delayed_work_sync+0xd/0xf
             [<ffffffffa064a33f>] rtl8187_stop+0x34c/0x364 [rtl8187]
             [<ffffffffa0242866>] ieee80211_stop_device+0x29/0x61 [mac80211]
             [<ffffffffa0239194>] ieee80211_stop+0x476/0x530 [mac80211]
             [<ffffffff8120ce15>] dev_close+0x8a/0xac
             [<ffffffffa01d9fa7>] cfg80211_rfkill_set_block+0x4a/0x7a [cfg80211]
             [<ffffffffa01bf4f0>] rfkill_set_block+0x84/0xd9 [rfkill]
             [<ffffffffa01bfc31>] rfkill_fop_write+0xda/0x124 [rfkill]
             [<ffffffff810cf286>] vfs_write+0xae/0x14a
             [<ffffffff810cf3e6>] sys_write+0x47/0x6e
             [<ffffffff8100ba6b>] system_call_fastpath+0x16/0x1b
             [<ffffffffffffffff>] 0xffffffffffffffff
      
      The problem here is that rtl8187_stop, while helding priv->conf_mutex,
      runs cancel_delayed_work_sync on an workqueue that runs rtl8187_work,
      which also takes priv->conf_mutex lock. Move cancel_delayed_work_sync
      out of rtl8187_stop priv->conf_mutex locking region.
      Reported-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Tested-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NHerton Ronaldo Krzesinski <herton@mandriva.com.br>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6a8171f2