diff options
author | Christoph Hellwig <hch@infradead.org> | 2009-10-19 06:03:46 +0200 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2009-12-11 22:11:19 +0100 |
commit | c56c9631cbe88f08854a56ff9776c1f310916830 (patch) | |
tree | 9069de0b572857072bc99334b8d5e1bce14ef13f /security/lsm_audit.c | |
parent | xfs: simplify inode teardown (diff) | |
download | linux-c56c9631cbe88f08854a56ff9776c1f310916830.tar.xz linux-c56c9631cbe88f08854a56ff9776c1f310916830.zip |
xfs: fix mmap_sem/iolock inversion in xfs_free_eofblocks
When xfs_free_eofblocks is called from ->release the VM might already
hold the mmap_sem, but in the write path we take the iolock before
taking the mmap_sem in the generic write code.
Switch xfs_free_eofblocks to only trylock the iolock if called from
->release and skip trimming the prellocated blocks in that case.
We'll still free them later on the final iput.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'security/lsm_audit.c')
0 files changed, 0 insertions, 0 deletions