From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 6 08:29:18 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1F04722D; Fri, 6 Sep 2013 08:29:18 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3C2BC277F; Fri, 6 Sep 2013 08:29:17 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id hm2so548715wib.6 for ; Fri, 06 Sep 2013 01:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cKvvmgI4MFZXDvTnnY59FeR0s1d1wz4lMm26SQGf0GA=; b=o5ccwrrEuDeiW02qIeTQ6XnFRpVWxSOvENLrYvAxtBCntauuGYvzJ5Kawq6Cip7cHj KTYEFxt21sjAI20m6psQjR/iAETpGKUHgUt6rHvq2i7Gf1Ktkb5vDH/Mdnvik6qzQetu zWxsoTzF47FlRRkv1QJPFKUgf+PjPbvI527zoNJ5Nim2nbRPRlkpbMiYu9cW8GZVrcly OWCvw/RKcHx2ZQjDE8gLIOGI3U2KvJAs0khy1ABKa1qtTb8nQXYLl1FjaJCm8T/So4+a eCLG/1gRFmJkyHF3WXMobqxVo+74DfeHBTuBFeey4wOYwV1YaaFAGkikPa3GrLaXH16j cTLA== X-Received: by 10.194.86.5 with SMTP id l5mr531403wjz.45.1378456155424; Fri, 06 Sep 2013 01:29:15 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([37.229.21.195]) by mx.google.com with ESMTPSA id e5sm4368184wiy.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 01:29:14 -0700 (PDT) Sender: Alexander Motin Message-ID: <52299257.10704@FreeBSD.org> Date: Fri, 06 Sep 2013 11:29:11 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130616 Thunderbird/17.0.6 MIME-Version: 1.0 To: Jeremie Le Hen Subject: Re: [RFC][CFT] GEOM direct dispatch and fine-grained CAM locking References: <520D4ADB.50209@FreeBSD.org> <5224511D.4090503@FreeBSD.org> <20130903134251.GB43281@caravan.chchile.org> <5226DAB0.1060303@FreeBSD.org> <5228F9D4.3060008@FreeBSD.org> <20130906080627.GH43281@caravan.chchile.org> In-Reply-To: <20130906080627.GH43281@caravan.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, "freebsd-current@freebsd.org" , freebsd-geom@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 08:29:18 -0000 On 06.09.2013 11:06, Jeremie Le Hen wrote: > On Fri, Sep 06, 2013 at 12:46:27AM +0200, Olivier Cochard-Labbé wrote: >> On Thu, Sep 5, 2013 at 11:38 PM, Alexander Motin wrote: >>> I've found and fixed possible double request completion, that could cause >>> such symptoms if happened. Updated patch located as usual: >>> http://people.freebsd.org/~mav/camlock_patches/camlock_20130905.patch >>> > With this new one I cannot boot any more (I also updated the source > tree). This is a hand transcripted version: > > Trying to mount root from zfs:zroot/root []... > panic: Batch flag already set > cpuid = 1 > KDB: stack backtrace: > db_trace_self_wrapper() > kdb_backtrace() > vpanic() > kassert_panic() > xpt_batch_start() > ata_interrupt() > softclock_call_cc() > softclock() > ithread_loop() > fork_exit() > fork_trampoline() Thank you for the report. I see my fault. It is probably specific to ata(4) driver only. I've workarounded that in new patch version, but probably that area needs some rethinking. http://people.freebsd.org/~mav/camlock_patches/camlock_20130906.patch -- Alexander Motin