1. 17 2月, 2007 13 次提交
  2. 16 2月, 2007 2 次提交
  3. 15 2月, 2007 15 次提交
  4. 14 2月, 2007 4 次提交
  5. 13 2月, 2007 6 次提交
    • A
      [PATCH] x86: Don't require the vDSO for handling a.out signals · 9fbbd4dd
      Andi Kleen 提交于
      and in other strange binfmts. vDSO is not necessarily mapped there.
      Signed-off-by: NAndi Kleen <ak@suse.de>
      9fbbd4dd
    • I
      [PATCH] x86: fix laptop bootup hang in init_acpi() · 5d0e600d
      Ingo Molnar 提交于
      During kernel bootup, a new T60 laptop (CoreDuo, 32-bit) hangs about
      10%-20% of the time in acpi_init():
      
       Calling initcall 0xc055ce1a: topology_init+0x0/0x2f()
       Calling initcall 0xc055d75e: mtrr_init_finialize+0x0/0x2c()
       Calling initcall 0xc05664f3: param_sysfs_init+0x0/0x175()
       Calling initcall 0xc014cb65: pm_sysrq_init+0x0/0x17()
       Calling initcall 0xc0569f99: init_bio+0x0/0xf4()
       Calling initcall 0xc056b865: genhd_device_init+0x0/0x50()
       Calling initcall 0xc056c4bd: fbmem_init+0x0/0x87()
       Calling initcall 0xc056dd74: acpi_init+0x0/0x1ee()
      
      It's a hard hang that not even an NMI could punch through!  Frustratingly,
      adding printks or function tracing to the ACPI code made the hangs go away
      ...
      
      After some time an additional detail emerged: disabling the NMI watchdog
      made these occasional hangs go away.
      
      So i spent the better part of today trying to debug this and trying out
      various theories when i finally found the likely reason for the hang: if
      acpi_ns_initialize_devices() executes an _INI AML method and an NMI
      happens to hit that AML execution in the wrong moment, the machine would
      hang.  (my theory is that this must be some sort of chipset setup method
      doing stores to chipset mmio registers?)
      
      Unfortunately given the characteristics of the hang it was sheer
      impossible to figure out which of the numerous AML methods is impacted
      by this problem.
      
      As a workaround i wrote an interface to disable chipset-based NMIs while
      executing _INI sections - and indeed this fixed the hang.  I did a
      boot-loop of 100 separate reboots and none hung - while without the patch
      it would hang every 5-10 attempts.  Out of caution i did not touch the
      nmi_watchdog=2 case (it's not related to the chipset anyway and didnt
      hang).
      
      I implemented this for both x86_64 and i686, tested the i686 laptop both
      with nmi_watchdog=1 [which triggered the hangs] and nmi_watchdog=2, and
      tested an Athlon64 box with the 64-bit kernel as well. Everything builds
      and works with the patch applied.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Len Brown <lenb@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      5d0e600d
    • E
      [PATCH] x86-64: get rid of ARCH_HAVE_XTIME_LOCK · 5809f9d4
      Eric Dumazet 提交于
      ARCH_HAVE_XTIME_LOCK is used by x86_64 arch .  This arch needs to place a
      read only copy of xtime_lock into vsyscall page.  This read only copy is
      named __xtime_lock, and xtime_lock is defined in
      arch/x86_64/kernel/vmlinux.lds.S as an alias.  So the declaration of
      xtime_lock in kernel/timer.c was guarded by ARCH_HAVE_XTIME_LOCK define,
      defined to true on x86_64.
      
      We can get same result with _attribute__((weak)) in the declaration. linker
      should do the job.
      Signed-off-by: NEric Dumazet <dada1@cosmosbay.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      5809f9d4
    • C
      NFS: disconnect before retrying NFSv4 requests over TCP · 43d78ef2
      Chuck Lever 提交于
      RFC3530 section 3.1.1 states an NFSv4 client MUST NOT send a request
      twice on the same connection unless it is the NULL procedure.  Section
      3.1.1 suggests that the client should disconnect and reconnect if it
      wants to retry a request.
      
      Implement this by adding an rpc_clnt flag that an ULP can use to
      specify that the underlying transport should be disconnected on a
      major timeout.  The NFSv4 client asserts this new flag, and requests
      no retries after a minor retransmit timeout.
      
      Note that disconnecting on a retransmit is in general not safe to do
      if the RPC client does not reuse the TCP port number when reconnecting.
      
      See http://bugzilla.linux-nfs.org/show_bug.cgi?id=6Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      43d78ef2
    • P
      [NETFILTER]: ip_conntrack: fix invalid conntrack statistics RCU assumption · abbaccda
      Patrick McHardy 提交于
      CONNTRACK_STAT_INC assumes rcu_read_lock in nf_hook_slow disables
      preemption as well, making it legal to use __get_cpu_var without
      disabling preemption manually. The assumption is not correct anymore
      with preemptable RCU, additionally we need to protect against softirqs
      when not holding ip_conntrack_lock.
      
      Add CONNTRACK_STAT_INC_ATOMIC macro, which disables local softirqs,
      and use where necessary.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      abbaccda
    • P
      [NETFILTER]: nf_log: minor cleanups · e92ad99c
      Patrick McHardy 提交于
      - rename nf_logging to nf_loggers since its an array of registered loggers
      
      - rename nf_log_unregister_logger() to nf_log_unregister() to make it
        symetrical to nf_log_register() and convert all users
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e92ad99c