Re: [PATCH 12/18] fs: add a per-superblock lock for the inode list

Christoph Hellwig
2010-10-08T07:35:35Z

On Fri, Oct 08, 2010 at 04:21:26PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> To allow removal of the inode_lock, we first need to protect the
> superblock inode list with its own lock instead of using the
> inode_lock. Add a lock to the superblock to protect this list and
> nest the new lock inside the inode_lock around the list operations
> it needs to protect.
>
> Based on a patch originally from Nick Piggin.

Looks good,

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