Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

From: Pete Zaitcev
Date: Tue Dec 06 2005 - 16:03:22 EST


On Tue, 6 Dec 2005 18:14:49 -0200, Luiz Fernando Capitulino <lcapitulino@xxxxxxxxxxxxxxx> wrote:

> The spinlock makes the code less clear, error prone, and we already a
> semaphore in the struct usb_serial_port.
>
> The spinlocks _seems_ useless to me.

Dude, semaphores are not compatible with interrupts. Surely you
understand that?

-- Pete
-
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/