xfs
[Top] [All Lists]

Re: [PATCH] make xfs_idestroy() wait for log I/O to complete

To: Lachlan McIlroy <lachlan@xxxxxxx>
Subject: Re: [PATCH] make xfs_idestroy() wait for log I/O to complete
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Fri, 14 Dec 2007 20:33:23 +0000
Cc: xfs-dev <xfs-dev@xxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
In-reply-to: <475F8BC3.8020804@xxxxxxx>
References: <475F8BC3.8020804@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
On Wed, Dec 12, 2007 at 06:20:35PM +1100, Lachlan McIlroy wrote:
> An xfs inode can be destroyed before log I/O involving that inode
> is complete.  We need to wait for the inode to be unpinned before
> tearing it down.  The patch looks big but the only real change is
> adding a call to xfs_iunpin_wait() to the start of xfs_idestroy().
> The rest of the patch is moving xfs_idestroy() after the pinning
> routines.

Making sure the inode is unpinned before it's destroyed definitvely
sounds useful.  I can't think of any harm this might cause either.

I'd prefer to have to commits, one to move the function around and one
to add the call to xfs_iunpin_wait, though.


<Prev in Thread] Current Thread [Next in Thread>