Christoph Hellwig c56c9631cb 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>
2009-12-11 15:11:19 -06:00
..
2009-12-11 15:11:19 -06:00
2009-06-10 17:07:47 +02:00
2009-06-10 17:07:47 +02:00
2009-09-01 12:45:48 -05:00
2009-08-31 14:46:21 -05:00
2009-06-10 17:07:47 +02:00
2009-06-08 15:35:48 +02:00
2009-09-01 12:46:16 -05:00
2009-09-01 12:46:16 -05:00
2009-08-31 14:46:22 -05:00
2009-06-10 17:07:47 +02:00
2009-04-06 18:49:12 +02:00
2009-06-08 15:33:32 +02:00
2009-09-01 12:45:57 -05:00
2009-08-31 14:46:22 -05:00
2009-09-01 12:46:16 -05:00
2009-06-08 15:33:32 +02:00
2009-12-11 15:11:19 -06:00