On Thu, Jul 31, 2008 at 4:50 AM, Eric W. Biederman
<ebiederm@xmission.com> wrote:
quoted text >> replace
>> [PATCH] serial: change irq_lists to use dyn_array
>> use small array with index to handle irq locking for serial port
>> hope 32 slot is enough
>
> Could you size this array by NR_UARTS (our worst case usage)
how about crazy user set that too big?
quoted text > and place irq_no in struct irq_info?
should be ok
quoted text >
> Also you want to hold irq_info->lock when you set or clear irq_no.
> Just to be on the safe side. I expect we can avoid clearing the irq_no
> in the irq_lists and prevent a few more races from being a possibility.
will try
YH
--
unsubscribe notice 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/
Messages in current thread:
Re: [PATCH] serial: change remove NR_IRQS in 8250.c , Yinghai Lu , (Thu Jul 31, 11:20 pm)