Re: [patch] ipv4: initialize arp_tbl rw lock



On Fri, 7 Apr 2006 10:15:33 +0200
Heiko Carstens <heiko.carstens@xxxxxxxxxx> wrote:

From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

The qeth driver makes use of the arp_tbl rw lock. CONFIG_DEBUG_SPINLOCK
detects that this lock is not initialized as it is supposed to be.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
---

This is a initialization order problem then, because:
arp_init
neigh_table_init
rwlock_init

does the initialization already. So fix the initialization sequence
of the qeth driver or you will have other problems.

My impression was the -rt folks wanted all lock initializations t be
done at runtime not compile time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: C++ Function Static Initialization, Thread-Safe?
    ... take a mutex in the `init' routine. ... and that lock is required by the constructor of the ... Initialization of separate local statics need not and should not by ...
    (comp.programming.threads)
  • [Help needed] Locking mechanisms in Linux
    ... I need a little help regarding lock mechanisms in Linux. ... Whenever a file is created first time, a header is initialized. ... If magic number and check-sum fields are corrupted then the process ... initialization these fields will be containing garbage values. ...
    (comp.os.linux.development.system)
  • [Help needed] Locking mechanisms in Linux
    ... I need a little help regarding lock mechanisms in Linux. ... Whenever a file is created first time, a header is initialized. ... If magic number and check-sum fields are corrupted then the process ... initialization these fields will be containing garbage values. ...
    (comp.unix.programmer)
  • Re: C++ Function Static Initialization, Thread-Safe?
    ... I presume you are referring to the thread-safe initialization ... of local statics that is required by the C++0x standard? ... and that lock is required by the constructor of the ... The problem with the compiler magically adding synchronization code is ...
    (comp.programming.threads)
  • Re: double-checked locking in C
    ... Except that threads may never lock the mutex. ... guarantee they'll ever see the initialization. ... you don't call 'lock' or 'unlock' if the initialization ...
    (comp.programming.threads)