smbfs broken?

Pyun YongHyeon yongari at rndsoft.co.kr
Thu May 12 03:58:06 PDT 2005


On Thu, May 12, 2005 at 10:23:56AM +0100, Peter Edwards wrote:
 > On 5/12/05, Pyun YongHyeon <yongari at rndsoft.co.kr> wrote:
 > > Got this on a p3(UP) running -CURRENT.
 > > 
 > > # mount_smbfs -I 192.168.5.92 //user at 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 at freebsd.org


More information about the freebsd-current mailing list