[Ocfs2-devel] [PATCH 0/3] ocfs2: fix slow deleting

Sunil Mushran sunil.mushran at oracle.com
Thu Jul 7 13:02:10 PDT 2011


On 07/06/2011 11:19 PM, Srinivas Eeda wrote:
> On 7/5/2011 11:17 PM, Sunil Mushran wrote:
>> 2. All nodes have to scan all slots. Even live slots. I remember we
>> did for
>> a reason. And that reason should be in the comment in the patch written
>> by Srini.
> When a node unlinks a file it inserts an entry into it's own orphan
> slot. If another node is the last one to close the file and dentry got
> flushed then it will not do the cleanup as it doesn't know the file was
> orphaned. The file will remain in the orphan slot  till the node umounts
> and the same slot is reused again. To overcome this problem a node has
> to rescan all slots(including live slots) and try to do the cleanup.

The qs is not why are we scanning all live slots on all nodes. As in,
why not just recover the local slot. There was a reason for that.
Yes, we have to recover unused slots for the reason listed previously.



More information about the Ocfs2-devel mailing list