lockdep annotation question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux