Re: [PATCH 9 of 20] ipath - char devices for diagnostics andlightweight subnet management

From: Bryan O'Sullivan
Date: Thu Mar 09 2006 - 18:47:22 EST


On Thu, 2006-03-09 at 15:24 -0800, Roland Dreier wrote:

> It seems there's a window here where two processes can both pass the
> if (ipath_sma_alive) test and then proceed to step on each other.

Yep, this is a real race, albeit incredibly unlikely. I just turned
ipath_sma_alive into an atomic_t, and wrapped the open/close code in
spinlocks.

<b

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