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

From: Roland Dreier
Date: Thu Mar 09 2006 - 18:49:02 EST


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

How does making it an atomic_t help? I think you're only going to be
using atomic_set() and atomic_read(), and atomic_t doesn't provide
anything in that case.

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