tech-kern archive

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

Re: ZFS vs NetBSD vnode recycling



On Fri, Oct 16, 2009 at 12:09:07PM +0100, Matthias Scheler wrote:
> On Fri, Oct 16, 2009 at 12:18:31PM +0200, Pawel Jakub Dawidek wrote:
> > It depends how your mutex_tryenter() behaves in case of recursive call.
> 
> I hope that it fails. If it doesn't you don't know after a succesful
> call of mutex_tryenter() whether you should call mutex_exit() or not.

In case of recursive call, mutex_exit() just decrements recursion
counter. For recursive locks I'd expect trylock always succeeds if lock
is already held.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd%FreeBSD.org@localhost                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Attachment: pgpocFYFNAQuf.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index