lock violation in unionfs (9.0-STABLE r230270)

Attilio Rao attilio at freebsd.org
Thu Aug 9 18:27:01 UTC 2012

On 8/8/12, Harald Schmalzbauer <h.schmalzbauer at omnilan.de> wrote:
>  schrieb Pavel Polyakov am 06.03.2012 11:20 (localtime):
>>>> mount -t unionfs -o noatime /usr /mnt
>>>> insmntque: mp-safe fs and non-locked vp: 0xfffffe01d96704f0 is not
>>>> exclusive locked but should be
>>>> KDB: enter: lock violation
>>> Pavel,
>>> can you give a spin to this patch?:
>>> http://www.freebsd.org/~attilio/unionfs_missing_insmntque_lock.patch
>>> I think that the unlocking is due at that point as the vnode lock can
>>> be switch later on.
>>> Let me know what you think about it and what the test does.
>> Thanks!
>> This patch fixes the problem with lock violation. Sorry I've tested it so
>> late.
> Hello,
> this patch still applies cleanly to RELENG_9_1. Was there another fix
> for the issue or has it just not been PR-sent and thus forgotten?

Can you and Pavel try the attached patch? Unfortunately I had no time
to test it, I just made in 5 free mins from a non-FreeBSD workstation,
then you should be able to tell me if it works or not, even compiling
it on a RELENG_9_1.
Please try with INVARIANTS option on.


Peace can only be achieved by understanding - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unionfs_nodeget.patch
Type: text/x-patch
Size: 2234 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120809/9f6c6cac/unionfs_nodeget.bin

More information about the freebsd-stable mailing list