Re: [RFC] get_write_access()/deny_write_access() withoutinode->i_lock

From: Al Viro
Date: Mon Jun 20 2011 - 13:03:15 EST


On Mon, Jun 20, 2011 at 05:42:11PM +0100, Al Viro wrote:

> BTW, atomic_add_unless/atomic_inc_not_zero is done as read/cmpxchg on
> everything I've checked, including alpha and sparc. I suspect that
> it's seriously suboptimal there...

Actually, on sparc it's probably fine. alpha, OTOH, probably ought to switch
to something similar to what ppc is doing...
--
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/