]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Fix AIL flush issue during fsync
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 7 Sep 2011 09:33:25 +0000 (10:33 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 27 Oct 2011 08:08:11 +0000 (09:08 +0100)
commit601d273742070b70503c0176636f3ba52d2cb48d
treeb634442a578b053c8fec5a8c55a8a0373c460214
parent39b24530612b5fecf06a1673caee24b72ad92565
GFS2: Fix AIL flush issue during fsync

Unfortunately, it is not enough to just ignore locked buffers during
the AIL flush from fsync. We need to be able to ignore all buffers
which are locked, dirty or pinned at this stage as they might have
been added subsequent to the log flush earlier in the fsync function.

In addition, this means that we no longer need to rely on i_mutex to
keep out writes during fsync, so we can, as a side-effect, remove
that protection too.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Tested-By: Abhijith Das <adas@redhat.com>
fs/gfs2/file.c
fs/gfs2/glops.c
fs/gfs2/glops.h
fs/gfs2/super.c