diff options
| author | Christoph Hellwig <[email protected]> | 2012-03-27 10:34:49 -0400 |
|---|---|---|
| committer | Ben Myers <[email protected]> | 2012-05-14 16:20:20 -0500 |
| commit | 193aec10504e4c24521449c46317282141fb36e8 (patch) | |
| tree | ab68802be2bc151911732a78c3acd84604164b20 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | f38996f5768713fb60e1d2de66c097367d54bb6a (diff) | |
xfs: push the ilock into xfs_zero_eof
Instead of calling xfs_zero_eof with the ilock held only take it internally
for the minimall required critical section around xfs_bmapi_read. This
also requires changing the calling convention for xfs_zero_last_block
slightly. The actual zeroing operation is still serialized by the iolock,
which must be taken exclusively over the call to xfs_zero_eof.
We could in fact use a shared lock for the xfs_bmapi_read calls as long as
the extent list has been read in, but given that we already hold the iolock
exclusively there is little reason to micro optimize this further.
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Mark Tinguely <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions