Re: smbfs broken?

From: Pyun YongHyeon <yongari_at_rndsoft.co.kr>
Date: Thu, 12 May 2005 19:57:20 +0900
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
 > _at__at_ -239,6 +239,7 _at__at_
 >  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
Received on Thu May 12 2005 - 08:58:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:34 UTC