[Ocfs2-commits] branch, orphan-scan, created. ocfs2-1.4.0-119-gf6080a6

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Jun 9 15:14:21 PDT 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The ocfs2 filesystem version 1.4".

The branch, orphan-scan has been created
        at  f6080a698251629e8152554f5d1e33ec3ffe2a3d (commit)

- Log -----------------------------------------------------------------
commit f6080a698251629e8152554f5d1e33ec3ffe2a3d
Author: Srinivas Eeda <srinivas.eeda at oracle.com>
Date:   Tue Jun 9 15:00:01 2009 -0700

    ocfs2: Track delayed orphan scan
    
    Patch to track delayed orphan scan timer statistics.
    
    Modifies ocfs2_osb_dump to print the following:
      Orphan Scan=> Local: 10  Global: 21  Last Scan: 67 seconds ago
    
    Signed-off-by: Srinivas Eeda <srinivas.eeda at oracle.com>
    Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>

commit bd1fda0725338a1a831cf763c2cacccd83d2776e
Author: Srinivas Eeda <srinivas.eeda at oracle.com>
Date:   Tue Jun 9 15:00:37 2009 -0700

    ocfs2: Timer to queue scan of all orphan
    
    When a dentry is unlinked, the unlinking node takes an EX on the dentry lock
    before moving the dentry to the orphan directory. The other nodes, that all had
    a PR on the same dentry lock, flag the corresponding inode as MAYBE_ORPHANED
    during the downconvert. The inode is finally deleted when the last node to iput
    the inode notices the MAYBE_ORPHANED flag.
    
    A problem arises if a node is forced to free dentry locks because of memory
    pressure. If this happens, the node will no longer get downconvert notifications
    for the dentries that have been unlinked on another node. If it also happens
    that node is actively using the corresponding inode and happens to be the one
    performing the last iput on that inode, it will fail to delete the inode as it
    will not have the MAYBE_ORPHANED flag set.
    
    This patch fixes this shortcoming by introducing a periodic scan of the orphan
    directories to delete such inodes. Care has been taken to distribute the
    workload across the cluster so that no one node has to perform the task all the
    time.
    
    Signed-off-by: Srinivas Eeda <srinivas.eeda at oracle.com>
    Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>

-----------------------------------------------------------------------


hooks/post-receive
-- 
The ocfs2 filesystem version 1.4



More information about the Ocfs2-commits mailing list