diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-12-21 02:28:39 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-12-21 02:28:39 +0100 |
commit | 1c3cb9ec07fabf0c0970adc46fd2a1f09c1186dd (patch) | |
tree | b8b6bf968f663723b06aa68ec499e49f3cdfbad0 /lib | |
parent | xfs: convert l_last_sync_lsn to an atomic variable (diff) | |
download | linux-1c3cb9ec07fabf0c0970adc46fd2a1f09c1186dd.tar.xz linux-1c3cb9ec07fabf0c0970adc46fd2a1f09c1186dd.zip |
xfs: convert l_tail_lsn to an atomic variable.
log->l_tail_lsn is currently protected by the log grant lock. The
lock is only needed for serialising readers against writers, so we
don't really need the lock if we make the l_tail_lsn variable an
atomic. Converting the l_tail_lsn variable to an atomic64_t means we
can start to peel back the grant lock from various operations.
Also, provide functions to safely crack an atomic LSN variable into
it's component pieces and to recombined the components into an
atomic variable. Use them where appropriate.
This also removes the need for explicitly holding a spinlock to read
the l_tail_lsn on 32 bit platforms.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions