1. 25 9月, 2006 7 次提交
    • M
      ocfs2: Hook rest of the file system into dentry locking API · 379dfe9d
      Mark Fasheh 提交于
      Actually replace the vote calls with the new dentry operations. Make any
      necessary adjustments to get the scheme to work.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      379dfe9d
    • M
      ocfs2: Add dentry tracking API · 80c05846
      Mark Fasheh 提交于
      Replace the dentry vote mechanism with a cluster lock which covers a set
      of dentries. This allows us to force d_delete() only on nodes which actually
      care about an unlink.
      
      Every node that does a ->lookup() gets a read only lock on the dentry, until
      an unlink during which the unlinking node, will request an exclusive lock,
      forcing the other nodes who care about that dentry to d_delete() it. The
      effect is that we retain a very lightweight ->d_revalidate(), and at the
      same time get to make large improvements to the average case performance of
      the ocfs2 unlink and rename operations.
      
      This patch adds the higher level API and the dentry manipulation code.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      80c05846
    • M
      ocfs2: Add new cluster lock type · d680efe9
      Mark Fasheh 提交于
      Replace the dentry vote mechanism with a cluster lock which covers a set
      of dentries. This allows us to force d_delete() only on nodes which actually
      care about an unlink.
      
      Every node that does a ->lookup() gets a read only lock on the dentry, until
      an unlink during which the unlinking node, will request an exclusive lock,
      forcing the other nodes who care about that dentry to d_delete() it. The
      effect is that we retain a very lightweight ->d_revalidate(), and at the
      same time get to make large improvements to the average case performance of
      the ocfs2 unlink and rename operations.
      
      This patch adds the cluster lock type which OCFS2 can attach to
      dentries.  A small number of fs/ocfs2/dcache.c functions are stubbed
      out so that this change can compile.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      d680efe9
    • M
      ocfs2: Update dlmglue for new dlmlock() API · f0681062
      Mark Fasheh 提交于
      File system lock names are very regular right now, so we really only need to
      pass an extra parameter to dlmlock().
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      f0681062
    • M
      ocfs2: Update dlmfs for new dlmlock() API · ea5b3a18
      Mark Fasheh 提交于
      We just need to add a namelen field to the user_lock_res structure, and
      update a few debug prints. Instead of updating all debug prints, I took the
      opportunity to remove a few that are likely unnecessary these days.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      ea5b3a18
    • M
      ocfs2: Allow binary names in the DLM · 3384f3df
      Mark Fasheh 提交于
      The OCFS2 DLM uses strlen() to determine lock name length, which excludes
      the possibility of putting binary values in the name string. Fix this by
      requiring that string length be passed in as a parameter.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      3384f3df
    • M
      ocfs2: Silence dlm error print · e2c73698
      Mark Fasheh 提交于
      An AST can be delivered via the network after a lock has been removed, so no
      need to print an error when we see that.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      e2c73698
  2. 24 9月, 2006 1 次提交
  3. 23 9月, 2006 32 次提交