Re: RCU issue with SELinux (Re: SELINUX performance issues)

From: James Morris
Date: Fri Aug 20 2004 - 15:44:35 EST



> > + hvalue = atomic_inc_return(&avc_cache.lru_hint) % AVC_CACHE_SLOTS;

atomic_inc_return() is not implemented on ia32 or x86-64. Is there a
workaround, or do we need to implement it? (Andi Kleen suggested using
the xadd instruction and altinstructions for i386).


- James
--
James Morris
<jmorris@xxxxxxxxxx>


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