lockdep annotation question
Hi all,
I'm just trying to fix the FhGFS lockdep annotation (client is open source) and I don't figure out one of the issues:
getattr:
1) holds fhgfs_inode->semaphore
2) holds fhgfs_inode->handle_mutex
append-write:
1) holds fhgfs_inode->append_mutex
2) holds fhgfs_inode->semaphore
3) holds fhgfs_inode->handle_mutex
Now lockdep always complains on append writes about a possible circular dependency. Disabling the append mutex fixes it, but that is definitely not the right way, of course. I already tried
mutex_lock_nested(&append_mutex, PARENT);
and
mutex_lock_nested(&handle_mutex, CHILD);
but that didn't help.
Any hints what I'm missing?
Thanks in advance,
Bernd