tech-kern archive

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

Re: Ptyfs correction.



In article <543BBE4A.7090608%izyk.ru@localhost>, Ilia Zykov  <netbsd%izyk.ru@localhost> wrote:
>-=-=-=-=-=-
>
>Sorry, forgot free().

I think I would prefer to has a lock argument in the lookup function
and lock for the first call (the plain lookup) and not lock in the
second one (the lookup to insert). This feels safer to me and I don't
have to explain all the intricacies why locking is not needed which
just makes the code more fragile.

christos



Home | Main Index | Thread Index | Old Index