diff options
author | Bob Peterson <rpeterso@redhat.com> | 2015-03-11 15:52:31 +0100 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2015-12-14 19:19:28 +0100 |
commit | 901c6c665b1024ea2bbabc24ba609a118459a2d8 (patch) | |
tree | 3142102b533bcab238ea38be2bf272f90575da75 /lib/debugobjects.c | |
parent | GFS2: Reduce size of incore inode (diff) | |
download | linux-901c6c665b1024ea2bbabc24ba609a118459a2d8.tar.xz linux-901c6c665b1024ea2bbabc24ba609a118459a2d8.zip |
GFS2: Update master statfs buffer with sd_statfs_spin locked
Before this patch, function update_statfs called gfs2_statfs_change_out
to update the master statfs buffer without the sd_statfs_spin held.
In theory, another process could call gfs2_statfs_sync, which takes
the sd_statfs_spin lock and re-reads m_sc from the buffer. So there's
a theoretical timing window in which one process could write the
master statfs buffer, then another comes along and re-reads it, wiping
out the changes.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions