From owner-freebsd-fs@FreeBSD.ORG Sun Oct 26 17:24:52 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 7C7E98A3 for ; Sun, 26 Oct 2014 17:24:52 +0000 (UTC) Received: from smtp1.multiplay.co.uk (smtp1.multiplay.co.uk [85.236.96.35]) by mx1.freebsd.org (Postfix) with ESMTP id 4006AED2 for ; Sun, 26 Oct 2014 17:24:51 +0000 (UTC) Received: by smtp1.multiplay.co.uk (Postfix, from userid 65534) id 1095720E7088C; Sun, 26 Oct 2014 17:24:50 +0000 (UTC) Received: from [10.10.1.68] (82-69-141-170.dsl.in-addr.zen.co.uk [82.69.141.170]) by smtp1.multiplay.co.uk (Postfix) with ESMTPS id F313C20E70886; Sun, 26 Oct 2014 17:24:49 +0000 (UTC) Message-ID: <544D2EE4.6010809@multiplay.co.uk> Date: Sun, 26 Oct 2014 17:27:00 +0000 From: Steven Hartland User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Guido Falsi , 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> <544D1A3E.5000000@madpilot.net> In-Reply-To: <544D1A3E.5000000@madpilot.net> Content-Type: multipart/mixed; boundary="------------020309030106010303040409" 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:24:52 -0000 This is a multi-part message in MIME format. --------------020309030106010303040409 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 26/10/2014 15:58, Guido Falsi wrote: > >>> 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 Actually looks like the fix requires more changes than I first thought, updated patch attached. Regards Steve --------------020309030106010303040409 Content-Type: text/plain; charset=windows-1252; name="cf_erase.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cf_erase.patch" SW5kZXg6IHN5cy9jYW0vYXRhL2F0YV9kYS5jCj09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9jYW0v YXRhL2F0YV9kYS5jCShyZXZpc2lvbiAyNzMxNTcpCisrKyBzeXMvY2FtL2F0YS9hdGFfZGEu Ywkod29ya2luZyBjb3B5KQpAQCAtMTQ2Nyw5ICsxNDY3LDE1IEBAIGFkYV9kc210cmltKHN0 cnVjdCBhZGFfc29mdGMgKnNvZnRjLCBzdHJ1Y3QgYmlvICpiCiBzdGF0aWMgdm9pZAogYWRh X2NmYWVyYXNlKHN0cnVjdCBhZGFfc29mdGMgKnNvZnRjLCBzdHJ1Y3QgYmlvICpicCwgc3Ry dWN0IGNjYl9hdGFpbyAqYXRhaW8pCiB7CisJc3RydWN0IHRyaW1fcmVxdWVzdCAqcmVxID0g JnNvZnRjLT50cmltX3JlcTsKIAl1aW50NjRfdCBsYmEgPSBicC0+YmlvX3BibGtubzsKIAl1 aW50MTZfdCBjb3VudCA9IGJwLT5iaW9fYmNvdW50IC8gc29mdGMtPnBhcmFtcy5zZWNzaXpl OwogCisJYnplcm8ocmVxLCBzaXplb2YoKnJlcSkpOworCVRBSUxRX0lOSVQoJnJlcS0+YnBz KTsKKwliaW9xX3JlbW92ZSgmc29mdGMtPnRyaW1fcXVldWUsIGJwKTsKKwlUQUlMUV9JTlNF UlRfVEFJTCgmcmVxLT5icHMsIGJwLCBiaW9fcXVldWUpOworCiAJY2FtX2ZpbGxfYXRhaW8o YXRhaW8sCiAJICAgIGFkYV9yZXRyeV9jb3VudCwKIAkgICAgYWRhZG9uZSwK --------------020309030106010303040409--