Re: [PATCH] esp: Make driver SMP-correct

From: Jim Nelson (james4765_at_verizon.net)
Date: 12/31/04

  • Next message: Cal Peake: "Re: Compile error in kernel 2.6.10-bk3 in file slhc.c"
    Date:	Fri, 31 Dec 2004 06:00:11 -0500
    To: Russell King <rmk+lkml@arm.linux.org.uk>
    
    

    Russell King wrote:
    > On Fri, Dec 31, 2004 at 01:46:11AM -0800, Andrew Morton wrote:
    >
    >>James Nelson <james4765@verizon.net> wrote:
    >>
    >>>This is an attempt to make the esp serial driver SMP-correct. It also removes
    >>> some cruft left over from the serial_write() conversion.
    >>
    >>>From a quick scan:
    >>
    >>- startup() does multiple sleeping allocations and request_irq() under
    >> spin_lock_irqsave(). Maybe fixed by this:
    >
    >
    > However, can you guarantee that two threads won't enter startup() at
    > the same time? (that's what ASYNC_INITIALIZED is protecting the
    > function against, and the corresponding shutdown() as well.)
    >
    > It's probably better to port ESP to the serial_core structure where
    > this type of thing is already taken care of.
    >

    You are right. Quite a bit of work, if I am looking at it correctly, though. Any
    pointers/URLs to help a newbie get their head wrapped around the process?
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Cal Peake: "Re: Compile error in kernel 2.6.10-bk3 in file slhc.c"

    Relevant Pages

    • Re: [PATCH] esp: Make driver SMP-correct
      ... can you guarantee that two threads won't enter startup() at ... (that's what ASYNC_INITIALIZED is protecting the ... and the corresponding shutdown() as well.) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: quite big breakthrough in the BAD network performance, which mm6 did not fix
      ... | computer on the local network. ... so you can't give any sort of guarantee either. ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Applications segfault on evo n620c with 2.6.10
      ... When problem happens, processes start to segfault, usually right ... during startup. ... Programs that were loaded prior to problem usualy ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH -mm] x86 port lockless MCE quirky bank0
      ... On Tue, 17 May 2005, Andrew Morton wrote: ... I presume they may return later on, ... Which explains why I got the freeze at resume not at startup, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: True fsync() in Linux (on IDE)
      ... I think that we are able to guarantee that the write is fully atomic ... >If the hardware support is missing, it is prudent to say just that and ... >not make any bogus promises about platter inertia and "it usually ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)