1. 08 Jan, 2010 2 commits
    • Steven Whitehouse's avatar
      GFS2: Fix locking bug in rename · 24b977b5
      Steven Whitehouse authored
      The rename code was taking a resource group lock in cases where
      it wasn't actually needed, this caused problems if the rename
      was resulting in an inode being unlinked. The patch ensures that
      we only take the rgrp lock early if it is really needed.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      24b977b5
    • Steven Whitehouse's avatar
      GFS2: Ensure uptodate inode size when using O_APPEND · 56aa616a
      Steven Whitehouse authored
      The VFS reads the inode size during generic_file_aio_write() but
      with no locking around it. In order to get the expected result
      from O_APPEND opens, this patch updated the inode size before
      calling generic_file_aio_write()
      
      There is of course still a race here, in that there is nothing to
      prevent another node coming in and extending the file in the
      mean time. On the other hand, when used with file locking this
      will ensure that the expected results are obtained.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      56aa616a
  2. 06 Jan, 2010 4 commits
  3. 05 Jan, 2010 2 commits
  4. 04 Jan, 2010 27 commits
  5. 02 Jan, 2010 5 commits