Re: [RFC] sysctl locking
From: Don Lewis (truckman_at_FreeBSD.org)
Date: 10/13/04
- Previous message: Suleiman Souhlal: "Re: [RFC] sysctl locking"
- In reply to: Suleiman Souhlal: "Re: [RFC] sysctl locking"
- Next in thread: Don Lewis: "Re: [RFC] sysctl locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 13 Oct 2004 14:17:14 -0700 (PDT) To: ssouhlal@FreeBSD.org
On 13 Oct, Suleiman Souhlal wrote:
> Hi,
>
> On Oct 11, 2004, at 3:30 PM, Don Lewis wrote:
>> There seems to be a lot of locking/unlocking overhead in the oid lookup
>> and oid tree manipulation code. Doing the traversals at each level of
>> the tree without holding a lock for the entire time makes me nervous,
>> though I can't point to any specific problem. It might be better to
>> just hold a single lock across then entire lookup, insertion, or
>> deletion operation.
>
> Thanks for your reply! I think you are right. It would also make the
> locking much simpler. However, there is the problem that sysctl
> handlers can sleep, so we shouldn't be holding a mutex when calling
> them..
Unlock the mutex after doing the lookup and getting ownership of the
oid, and before calling the handler.
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Suleiman Souhlal: "Re: [RFC] sysctl locking"
- In reply to: Suleiman Souhlal: "Re: [RFC] sysctl locking"
- Next in thread: Don Lewis: "Re: [RFC] sysctl locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|