svn commit: r215797 - head/sys/kern

Attilio Rao attilio at freebsd.org
Wed Nov 24 15:56:48 UTC 2010


2010/11/24 Konstantin Belousov <kib at freebsd.org>:
> Author: kib
> Date: Wed Nov 24 12:30:41 2010
> New Revision: 215797
> URL: http://svn.freebsd.org/changeset/base/215797
>
> Log:
>  Allow shared-locked vnode to be passed to vunref(9).
>  When shared-locked vnode is supplied as an argument to vunref(9) and
>  resulting usecount is 0, set VI_OWEINACT and do not try to upgrade vnode
>  lock. The later could cause vnode unlock, allowing the vnode to be
>  reclaimed meantime.

Thanks a lot, I really appreciate that.

The story here is that kib really wanted to commit another patch
aiming for the vnode lock upgrade with a modify to lockmgr that I
wasn't happy with (or more specifically that I really wished could be
carried on in a different way).

As this is a time-critical fix for him, that is probabilly a better compromise.
I'll try to find some time and go with the full patchset I have in
mind, changing this to using upgrade.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the svn-src-head mailing list