From owner-freebsd-current@FreeBSD.ORG Sun May 6 01:27:36 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E57CE16A403 for ; Sun, 6 May 2007 01:27:36 +0000 (UTC) (envelope-from avatar@mmlab.cse.yzu.edu.tw) Received: from www.mmlab.cse.yzu.edu.tw (www.mmlab.cse.yzu.edu.tw [140.138.150.166]) by mx1.freebsd.org (Postfix) with ESMTP id B28F713C45B for ; Sun, 6 May 2007 01:27:36 +0000 (UTC) (envelope-from avatar@mmlab.cse.yzu.edu.tw) Received: by www.mmlab.cse.yzu.edu.tw (qmail, from userid 1000) id 0BDC48C9E2D; Sun, 6 May 2007 09:27:36 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by www.mmlab.cse.yzu.edu.tw (qmail) with ESMTP id 02A588C9E0A; Sun, 6 May 2007 09:27:35 +0800 (CST) Date: Sun, 6 May 2007 09:27:35 +0800 (CST) From: Tai-hwa Liang To: Kostik Belousov In-Reply-To: <20070429171949.GT2441@deviant.kiev.zoral.com.ua> Message-ID: <07050609065812.80781@www.mmlab.cse.yzu.edu.tw> References: <20070429171949.GT2441@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, Ivan Voras Subject: Re: smbfs mount wedges X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2007 01:27:37 -0000 On Sun, 29 Apr 2007, Kostik Belousov wrote: > On Sun, Apr 29, 2007 at 07:00:54PM +0200, Ivan Voras wrote: >> I have this line in my /etc/fstab: >> >> //ivoras@server/share /home/ivoras/mnt smbfs rw,noauto,-f640,-d750 0 0 >> >> But the command >> >> # mount /home/ivoras/mnt >> >> doesn't exit. The file system is mounted, I can see it in output of >> "mount" on another console, and I can access the files in it without >> problems, but the "mount" command never returns. It's stuck in state >> "devdrn", and can't be killed by SIGINT or SIGKILL. >> >> This is a -CURRENT from few days ago. >> >> Does smbfs work for someone? >> > > Take the > http://people.freebsd.org/~kib/misc/destroy_dev_sched.6.patch > In addition, replace calls to destroy_dev() in the smb cdev d_close() > method with destroy_dev_sched() (the precise location of that destroy_dev() > could be obtained by backtracing hung process in ddb). One can also try following patch which utilises kib@'s destroy_dev_sched() to fix devdrn hang found in other subsystems: http://people.freebsd.org/~avatar/destroy_dev_sched_addon.1.patch > This should fix "devdrn" hang. Please, report the results to me. After rebooting the kernel with aforementioned two patches applied, I don't see devdrn hang around mount_smbfs/watch for the last 2 months. -- Cheers, Tai-hwa Liang