From owner-freebsd-fs@FreeBSD.ORG Sun Oct 26 17:33:13 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43D82A1E for ; Sun, 26 Oct 2014 17:33:13 +0000 (UTC) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0159AFA1 for ; Sun, 26 Oct 2014 17:33:12 +0000 (UTC) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3jQmV50FN6zb38; Sun, 26 Oct 2014 18:33:01 +0100 (CET) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id 6JZKaVttFZbh; Sun, 26 Oct 2014 18:32:45 +0100 (CET) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Sun, 26 Oct 2014 18:32:40 +0100 (CET) Message-ID: <544D3038.7080901@FreeBSD.org> Date: Sun, 26 Oct 2014 18:32:40 +0100 From: Guido Falsi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Steven Hartland , freebsd-fs@freebsd.org Subject: Re: panic: detach with active requests on 10.1-RC3 References: <544A538F.6060202@FreeBSD.org> <544BBB85.2020909@madpilot.net> <544BC990.4030700@madpilot.net> <544CC4D4.7040203@FreeBSD.org> <544D137A.7010006@multiplay.co.uk> In-Reply-To: <544D137A.7010006@multiplay.co.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 17:33:13 -0000 On 10/26/14 16:30, Steven Hartland wrote: > > On 26/10/2014 09:54, Guido Falsi wrote: >> On 10/25/14 18:02, Guido Falsi wrote: >>> On 10/25/14 17:02, Guido Falsi wrote: >>>> On 10/24/14 15:26, Guido Falsi wrote: >>>>> Hi, >>>>> >>>>> I'm making some experiments with 10.1-RC3 on alix boards as hardware >>>>> using NanoBSD. >>>>> >>>>> By mounting and umounting UFS filesystems I have seen umount >>>>> constantly >>>>> hanging hard in a deadlock. I have tested on two boards with two >>>>> distinct compactflash disks with same results. This was not happening >>>>> with 10.0-RELEASE. >>>>> >>>>> I have build a 10.1-RC3 kernel with full debugging and caused the >>>>> problem to happen, I got this: >>>>> >>>>> root@qtest:~ [0]# umount /cfg >>>>> panic: detach with active requests >>>>> KDB: stack backtrace: >> [...] >>> I must admit I am out of ideas. >>> >> I bisected commits and finally found out this happens starting with >> r268815, which MFCed r268205. >> >> It is related to trim support, in fact disabling trim on the filesystm >> "fixes" it. >> >> I filed bug #194606 on bugzilla [1] to further track this issue, if >> anyone is interested. >> >> [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194606 > Nice work Guido, can you try the attached patch and see if that fixes it > please? It dies the same way with this patch applied. I tested applying the patch both in stable/10 at r268815 and to a fresh releng/10.1. -- Guido Falsi