[Bugs] [Bug 1651098] New: dht_readdirp_cbk : Set inode for dir entries if inode is already linked.

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 19 08:21:35 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1651098

            Bug ID: 1651098
           Summary: dht_readdirp_cbk : Set inode for dir entries if inode
                    is already linked.
           Product: GlusterFS
           Version: mainline
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org



Description of problem


dht_readdirp_cbk sets the entry->inode to NULL for directory entries in order
to force a lookup. This causes a massive slowdown when listing directories
which contain a lot of sub-directories.

If the inode for the directory is already present in the inode table, it
implies that the inode was linked (ie, a lookup was performed already). If the
inode for the directory entry is already linked, we do not need to send another
lookup for the directory.




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list