diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-12-03 22:11:29 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-12-03 22:11:29 +1100 |
commit | 84f3c683c4d3f36d3c3ed320babd960a332ac458 (patch) | |
tree | 5884f4e5a04a7a67c634e003bfa590fd2e643fdc /kernel | |
parent | 2ced19cbae5448b720919a494606c62095d4f4db (diff) | |
download | blackbird-op-linux-84f3c683c4d3f36d3c3ed320babd960a332ac458.tar.gz blackbird-op-linux-84f3c683c4d3f36d3c3ed320babd960a332ac458.zip |
xfs: convert l_last_sync_lsn to an atomic variable
log->l_last_sync_lsn is updated in only one critical spot - log
buffer Io completion - and is protected by the grant lock here. This
requires the grant lock to be taken for every log buffer IO
completion. Converting the l_last_sync_lsn variable to an atomic64_t
means that we do not need to take the grant lock in log buffer IO
completion to update it.
This also removes the need for explicitly holding a spinlock to read
the l_last_sync_lsn on 32 bit platforms.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions