From owner-cvs-all Fri Apr 26 14:44: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from web21104.mail.yahoo.com (web21104.mail.yahoo.com [216.136.227.106]) by hub.freebsd.org (Postfix) with SMTP id BADEF37B41A for ; Fri, 26 Apr 2002 14:43:57 -0700 (PDT) Message-ID: <20020426214357.91921.qmail@web21104.mail.yahoo.com> Received: from [62.254.0.5] by web21104.mail.yahoo.com via HTTP; Fri, 26 Apr 2002 14:43:57 PDT Date: Fri, 26 Apr 2002 14:43:57 -0700 (PDT) From: Hiten Pandya Reply-To: hiten@uk.FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_witness.c To: John Baldwin , Dag-Erling Smorgrav Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- John Baldwin wrote: > Mutex profiling counts as kernel work I think. The problem was that > the original commit was not fully tested. However, bugfixes should > still be tested before they go in. Even having the submitter of the > bug report test the patch before it goes in is sufficient and doesn't > require you to reboot your own machine. Well, as far as my memory goes, I did test the patch as far "booting" the machine was concerned. I did not get the panic aftet the Copyright and Build messages so for me, the problem was solved right there, I dont know anything further. > You can't be calling malloc while holding a spin lock. I would lock the > mutex, read the contents of an item from the array into stack variables, > unlock the mutex, then do the sbuf operation. I also suggest you _test_ > this before committing the fix. The above patch was tested as far as the panic message was concerned. -- Hiten __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message