1. 10 May, 2011 3 commits
  2. 09 May, 2011 7 commits
  3. 05 May, 2011 2 commits
    • Steven Whitehouse's avatar
      GFS2: Don't use a try lock when promoting to a higher mode · 588da3b3
      Steven Whitehouse authored
      Previously we marked all locks being promoted to a higher mode
      with the try flag to avoid any potential deadlocks issues. The
      DLM is able to detect these and report them in way that GFS2 can
      deal with them correctly. So we can just request the required mode
      and wait for a response without needing to perform this check.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      588da3b3
    • Steven Whitehouse's avatar
      GFS2: Double check link count under glock · d192a8e5
      Steven Whitehouse authored
      To avoid any possible races relating to the link count, we need to
      recheck it under the inode's glock in all cases where it matters.
      Also to ensure we never get any nasty surprises, this patch also
      ensures that once the link count has hit zero it can never be
      elevated by rereading in data from disk.
      
      The only place we cannot provide a proper solution is in rename
      in the case where we are removing a target inode and we discover
      that the target inode has been already unlinked on another node.
      The race window is very small, and we return EAGAIN in this case
      to indicate what has happened. The proper solution would be to move
      the lookup parts of rename from the vfs into library calls which
      the fs could call directly, but that is potentially a very big job
      and this fix should cover most cases for now.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      d192a8e5
  4. 03 May, 2011 3 commits
  5. 20 Apr, 2011 15 commits
  6. 19 Apr, 2011 10 commits