On 08-Apr-2002 Josef Karthauser wrote:
> On Mon, Apr 08, 2002 at 01:37:55PM -0400, John Baldwin wrote:
>> On 08-Apr-2002 Josef Karthauser wrote:
>> > On Mon, Apr 08, 2002 at 12:33:40PM -0400, John Baldwin wrote:
>> >> show witness isn't useful to most people so I would avoid it unless
>> >> someone
>> >> explicitly asks for it. The problem here is likely due to the
>> >> usb_task_thread() not locking Giant when it starts up.
>> > We probably want this:
>> Probably unless some USB specific locks are added instead, but this is the
>> easier fix for the time being.
> Cool. I've committed this; where should I look to get a low down on
> what to lock, when and how? Is there anything other than source to
> refer to?
Nothing besides the source really. If it's walking a list you might use a lock
to protect the list for example, but then you might need to conditionally get
Giant while performing an action on the list.
John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message