All instances of obtaining the lock in pcnet32 are done as spin_lock_irqsave except the interrupt handler itself. The interrupt mask needs to be saved everywhere else, but the interrupt handler is known not to need to save the flags. If the lock is held and the same CPU tries to get the lock again, it will wait a very long time ;-(. I believe the locking is fine for a non-preemptable kernel, but I have little experience with a preemptable kernel. When does a preemptable kernel allow interrupts to occur? Is there a bug in this particular architectures locking code? >From looking at preempt-locking.txt the driver has (1) no per-cpu data, (2) 'CPU state protection' should be fine, (3) the 'lock is acquired and released by the same task'. I don't see a problem unless I am misunderstanding something. Don - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: [email protected] (Lennart Sorensen)
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- References:
- Strange soft lockup detected message
- From: [email protected] (Lennart Sorensen)
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: [email protected] (Lennart Sorensen)
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: Frederik Deweerdt <[email protected]>
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: [email protected] (Lennart Sorensen)
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: Frederik Deweerdt <[email protected]>
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: [email protected] (Lennart Sorensen)
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: [email protected] (Lennart Sorensen)
- Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- From: [email protected] (Lennart Sorensen)
- Strange soft lockup detected message
- Prev by Date: Re: [RFC PATCH 3/3] boot bzImages under paravirt
- Next by Date: Re: Ext3 vs NTFS performance
- Previous by thread: Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- Next by thread: Re: Strange soft lockup detected message (looks like spin_lock bug in pcnet32)
- Index(es):