[PATCH 08/16] xfs: convert pag_ici_lock to a spin lock

Christoph Hellwig hch at infradead.org
Mon Nov 8 17:10:19 CST 2010


On Mon, Nov 08, 2010 at 07:55:11PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
> 
> now that we are using RCU protection for the inode cache lookups,
> the lock is only needed on the modification side. Hence it is not
> necessary for the lock to be a rwlock as there are no read side
> holders anymore. Convert it to a spin lock to reflect it's exclusive
> nature.
> 
> Signed-off-by: Dave Chinner <dchinner at redhat.com>
> Reviewed-by: Alex Elder <aelder at sgi.com>

Looks good, and this will make Thomas happy given that XFS is now
rwlock_t-free.

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the xfs mailing list