Re: [PATCH 06/16] SPARC: use ACCESS_ONCE for rlimits

From: David Miller
Date: Wed Nov 18 2009 - 12:55:27 EST


From: Jiri Slaby <jslaby@xxxxxxxxxx>
Date: Wed, 18 Nov 2009 15:51:52 +0100

> Make sure compiler won't do weird things with limits. E.g. fetching
> them twice may return 2 different values after writable limits are
> implemented.
>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>

But I wonder have we really seen the compiler create this
kind of situation? Or is this patch series based upon the
fact that it "could happen"?
--
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/