Messages in this thread | | | Date | Sun, 05 Sep 2004 16:20:19 +1000 | From | Nick Piggin <> | Subject | Re: [RFC][PATCH 3/3] teach kswapd about watermarks |
| |
David S. Miller wrote: > If you're only doing atomic_set() and atomic_read() on kswapd_max_order, > you're not doing anything atomic on the datum so no need to make it > an atomic_t. >
OK, sure. And yes, anything other than loads and stores on that value would never be correct.
There is still the small race of two threads updating the value, but that doesn't matter (and the atomics don't help there anyway of course).
- 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/
| |