From owner-freebsd-current@FreeBSD.ORG Thu May 12 10:58:05 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED9AC16A4D0 for ; Thu, 12 May 2005 10:58:05 +0000 (GMT) Received: from rndsoft.co.kr (michelle.rndsoft.co.kr [211.32.202.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDA6343D45 for ; Thu, 12 May 2005 10:58:04 +0000 (GMT) (envelope-from yongari@rndsoft.co.kr) Received: from yongari@rndsoft.co.kr(192.168.5.90) by MailFilter v1.05 with ESMTP Processed in 0.128761 secs; 12 May 2005 19:55:47 +0900 Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j4CAvKcq015264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2005 19:57:20 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j4CAvKwg015263; Thu, 12 May 2005 19:57:20 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Thu, 12 May 2005 19:57:20 +0900 From: Pyun YongHyeon To: peadar@freebsd.org Message-ID: <20050512105720.GD13083@rndsoft.co.kr> References: <20050512060804.GC13083@rndsoft.co.kr> <34cb7c8405051202231beae564@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34cb7c8405051202231beae564@mail.gmail.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-current@freebsd.org Subject: Re: smbfs broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@rndsoft.co.kr List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 10:58:06 -0000 On Thu, May 12, 2005 at 10:23:56AM +0100, Peter Edwards wrote: > On 5/12/05, Pyun YongHyeon wrote: > > Got this on a p3(UP) running -CURRENT. > > > > # mount_smbfs -I 192.168.5.92 //user@192.168.5.92/temp /mnt > ... > > panic: userret: Returning with 1 locks held. > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Hi Pyun, > Can you try the attached patch? > Index: smb_conn.c > =================================================================== > RCS file: /home/ncvs/src/sys/netsmb/smb_conn.c,v > retrieving revision 1.14 > diff -u -r1.14 smb_conn.c > --- smb_conn.c 7 Jan 2005 01:45:49 -0000 1.14 > +++ smb_conn.c 12 May 2005 09:20:05 -0000 > @@ -239,6 +239,7 @@ > smb_co_done(struct smb_connobj *cp) > { > smb_sl_destroy(&cp->co_interlock); > + lockmgr(&cp->co_lock, LK_RELEASE, 0, curthread); > lockdestroy(&cp->co_lock); > } > It works great. Thanks a lot. :) -- Regards, Pyun YongHyeon http://www.kr.freebsd.org/~yongari | yongari@freebsd.org