Re: [PATCH 09/18] fs: rework icount to be a locked variable

From: Christoph Hellwig
Date: Fri Oct 08 2010 - 04:17:31 EST


On Fri, Oct 08, 2010 at 06:50:01PM +1100, Dave Chinner wrote:
> > There's no need to lock a normal 32-bit variable for readers.
>
> Ok, but will need a memory barrier instead?

Isn't spin_unlock supposed to be one? I'll need some of the locking
experts to shime in.

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