[PATCH] xfs: fix stale inode flush avoidance

Christoph Hellwig hch at infradead.org
Mon Jan 11 15:47:33 CST 2010


On Mon, Jan 11, 2010 at 10:45:21PM +1100, Dave Chinner wrote:
> When reclaiming stale inodes, we need to guarantee that inodes are
> unpinned before returning with a "clean" status. If we don't we can
> reclaim inodes that are pinned, leading to use after free in the
> transaction subsystem as transactions complete.

Looks good.  Per discussion this morning the clean check might not be
good enough for delwri buffers either, but as let's leave that for the
more throughout redo of the inode buffer flushing.

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




More information about the xfs mailing list