Re: [PATCH 2/8] ext2fs: use a seperate lock to protect nodehash

2014-06-23 Thread Justus Winter
Quoting Justus Winter (2014-06-20 19:15:05) > Previously, ext2fs used diskfs_node_refcnt_lock to serialize access to > the nodehash. With this patch applied, I see filesystem corruptions. This patch could still be ok, as it might just expose some other problem. As Richard suggested I am using gi

[PATCH 2/8] ext2fs: use a seperate lock to protect nodehash

2014-06-22 Thread Justus Winter
Previously, ext2fs used diskfs_node_refcnt_lock to serialize access to the nodehash. Use a separate lock to protect nodehash. Adjust the reference counting accordingly. Every node in the nodehash carries a light reference. When we are asked to give up that light reference, we reacquire our lock