1. 09 5月, 2011 1 次提交
  2. 05 5月, 2011 2 次提交
    • S
      GFS2: Don't use a try lock when promoting to a higher mode · 588da3b3
      Steven Whitehouse 提交于
      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: NSteven Whitehouse <swhiteho@redhat.com>
      588da3b3
    • S
      GFS2: Double check link count under glock · d192a8e5
      Steven Whitehouse 提交于
      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: NSteven Whitehouse <swhiteho@redhat.com>
      d192a8e5
  3. 03 5月, 2011 3 次提交
  4. 20 4月, 2011 31 次提交
  5. 19 4月, 2011 3 次提交