Re: [PATCH] rwsem: Make rwsems use interrupt disabling spinlocks

From: Badari Pulavarty
Date: Wed Mar 09 2005 - 12:44:21 EST


Your patch seems to have helped. I don't see the Oops anymore - my
tests are still running (past 1 hour - it used to panic in 10 min).

Thanks,
Badari

On Wed, 2005-03-09 at 04:12, David Howells wrote:
> The attached patch makes read/write semaphores use interrupt disabling
> spinlocks, thus rendering the up functions and trylock functions available for
> use in interrupt context.
>
> I've assumed that the normal down functions must be called with interrupts
> enabled (since they might schedule), and used the irq-disabling spinlock
> variants that don't save the flags.
>
> Signed-Off-By: David Howells <dhowells@xxxxxxxxxx>
> ---
> warthog>diffstat -p1 rwsem-irqspin-2611mm2.diff


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