smbfs broken?

Peter Edwards peadar.edwards at gmail.com
Thu May 12 02:23:57 PDT 2005


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?
-------------- next part --------------
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);
 }
 


More information about the freebsd-current mailing list