Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2005 10:23:56 +0100
From:      Peter Edwards <peadar.edwards@gmail.com>
To:        yongari@rndsoft.co.kr
Cc:        freebsd-current@freebsd.org
Subject:   Re: smbfs broken?
Message-ID:  <34cb7c8405051202231beae564@mail.gmail.com>
In-Reply-To: <20050512060804.GC13083@rndsoft.co.kr>
References:  <20050512060804.GC13083@rndsoft.co.kr>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 5/12/05, Pyun YongHyeon <yongari@rndsoft.co.kr> 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?

[-- Attachment #2 --]
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);
 }
 
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34cb7c8405051202231beae564>