]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Fix symlink creation race
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 31 Mar 2009 15:06:27 +0000 (16:06 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 15 Apr 2009 09:15:38 +0000 (10:15 +0100)
commitd37906ded2a2890013fe325d9eb1022b4c4164aa
tree300c28954930875a4016d51fa7b7def93c7dc1bd
parentb6463f01df78b69d0b7611d9351a0f8337ec6c1b
GFS2: Fix symlink creation race

In certain cases symlinks can appear to have zero size if a lookup
on the inode occurs within a certain (very short) time after the
symlink has been created. The symlink is correctly created on disk
but appears to have zero size when stat()ed. This patch closes the
race and prevents incorrect sizes appearing.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_inode.c