xfs: fix stale inode flush avoidance
authorDave Chinner <david@fromorbit.com>
Mon, 11 Jan 2010 11:45:21 +0000 (11:45 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 15 Jan 2010 19:46:02 +0000 (13:46 -0600)
commit4b6a46882cca8349e8942e2650c33b11bc571c92
tree5a5ab0783340fa4acd75a172d857d0077a527809
parent126976c7c17d3bdfbc1fe9e0af8bee9f62d14cc6
xfs: fix stale inode flush avoidance

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.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_inode.c