From owner-freebsd-fs@FreeBSD.ORG Sun Oct 26 15:59:16 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DA317EB for ; Sun, 26 Oct 2014 15:59:16 +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 44569790 for ; Sun, 26 Oct 2014 15:59:15 +0000 (UTC) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3jQkPY0nLzzb36; Sun, 26 Oct 2014 16:58:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=mail; t=1414339134; x=1416153535; bh=OWbnC8HDhWImIe3eyBf+by0RshfiKWfuCIusxIAmMxU=; b= jZ3pKhojbQmjAdD8LWDNj+GVNXX/eQNVjCYX0EdJIrFbc1hJEa0zF5kjKPcCrFZp nIDURjREddDEytZ9yP1sr5KSsvS9xsqUtMbXMlPzPWwGNiaowmMJ46Fs+6NcowOZ jQDs+mwq5UgHi8ztuMfoDRCvoJbdTmURe0b92ngAJ38= 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 boi_Cr3THAeX; Sun, 26 Oct 2014 16:58:54 +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 16:58:54 +0100 (CET) Message-ID: <544D1A3E.5000000@madpilot.net> Date: Sun, 26 Oct 2014 16:58:54 +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 15:59:16 -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? Sure, I'll report back ASAP -- Guido Falsi