From owner-svn-src-head@freebsd.org Sun Nov 26 21:11:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D914DF0A0B; Sun, 26 Nov 2017 21:11:23 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8F6E7840D; Sun, 26 Nov 2017 21:11:22 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk0-x22a.google.com with SMTP id j202so30129882qke.10; Sun, 26 Nov 2017 13:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qYgcawa7NNQ/z0Wbi+tgCmv1q7y++mxXZyEsu5GPzo4=; b=MJbLx+4/QCsMuZWfz3XvrOLwkfDeKwVdZTr63X9H4+3B3a64VaplI8hk/5jCedpQsd fkQOEcU34Fvd6ApmR6I07s8abM3G1NexntBt5lFkFO6afrsRGPgnxSF0Iwv8mWtAT9LU MCh3CUI4QVQzUKJdZ/OczcwORsxO8kcohVk4wR90VU7Q33NFb90ycW2kePVAfOpWa/zI 2UMbGSdND8h09DLrt03TxVBOXn01azRNSEkqlJUZ1q3oyjiw/mOi66uyABgIZxDd+5PK XHdpDii37XQ9yQlsWSt9zBpsFM0adg8TGHG0ecm2MqOHTNQPPvVhrjXEos+B0wIA9iIT 6J1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qYgcawa7NNQ/z0Wbi+tgCmv1q7y++mxXZyEsu5GPzo4=; b=PyW5Vvrl0drkivppmrXtwI5Owuaj6CMS0f8cWga2wpt9M2kBUQdy34k4GBX3ZbuuGD CkIMtdURJHaJBhQvR7817NIe81X2e85vcFs8n8fMTo72PWhS0xxTPMnqtVLxYUcLzs37 yMtNgvy4dE2U5ib7AgBtDrXrrNQPV4A7fuVTVkfOeu0m+kAh7SIregXua4q4dFrTX5EC kvDa9b8ZvJn7oOCQryzRLBrUpBYUq9HVqnEiGUuZ8wHvYXL0DfBeaYQzaum9i2Y9Rz4O 5cEEXlGjl0kQ0rCnPB5QfIKzFqgSI3Dr4ZWU02QMYZlFX2ndy3iwQmZvKVtiY0+uCfej QqzA== X-Gm-Message-State: AJaThX5ylqCoDmC1vEk0XghZzR0+PDb526bgRX2hV/eatFwrAKTY0N5v 87LV1cEldvcnypBk67TxLDLBSa2iMt9SGhEmvhdlWg== X-Google-Smtp-Source: AGs4zMYq8Nrno/icUrsRZ/N77SuhZSJvyjk+NnUtZE/UAfAwyI+jzpXSPa6Q05g7lomjy2Bf3Hl7Sqi+clpVEHF6NPc= X-Received: by 10.55.182.129 with SMTP id g123mr47884663qkf.243.1511730681842; Sun, 26 Nov 2017 13:11:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.29.17 with HTTP; Sun, 26 Nov 2017 13:11:21 -0800 (PST) In-Reply-To: <20171126064927.GA68986@x2.osted.lan> References: <201711252049.vAPKnRaA026691@repo.freebsd.org> <20171126064927.GA68986@x2.osted.lan> From: Mateusz Guzik Date: Sun, 26 Nov 2017 22:11:21 +0100 Message-ID: Subject: Re: svn commit: r326200 - head/sys/kern To: Peter Holm Cc: Mateusz Guzik , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 21:11:23 -0000 On Sun, Nov 26, 2017 at 7:49 AM, Peter Holm wrote: > On Sat, Nov 25, 2017 at 08:49:27PM +0000, Mateusz Guzik wrote: > > Author: mjg > > Date: Sat Nov 25 20:49:27 2017 > > New Revision: 326200 > > URL: https://svnweb.freebsd.org/changeset/base/326200 > > > > Log: > > Add the missing lockstat check for thread lock. > > > > Modified: > > head/sys/kern/kern_mutex.c > > > > Modified: head/sys/kern/kern_mutex.c > > ============================================================ > ================== > > --- head/sys/kern/kern_mutex.c Sat Nov 25 20:37:13 2017 > (r326199) > > Hi Mateusz, > > Could this be yours? > > spin lock 0xffffffff81ddc100 (turnstile chain) held by 0xfffff80014e57000 > (tid 100277) too long > panic: spin lock held too long > cpuid = 20 > time = 1511677687 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe104f86ea40 > vpanic() at vpanic+0x268/frame 0xfffffe104f86eb10 > kproc_shutdown() at kproc_shutdown/frame 0xfffffe104f86eb70 > _mtx_lock_spin_failed() at _mtx_lock_spin_failed+0x87/frame > 0xfffffe104f86eba0 > _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x4ba/frame > 0xfffffe104f86ed10 > __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x21f/frame > 0xfffffe104f86edb0 > turnstile_trywait() at turnstile_trywait+0x32/frame 0xfffffe104f86edd0 > __rw_rlock_hard() at __rw_rlock_hard+0x118/frame 0xfffffe104f86ee60 > __rw_rlock_int() at __rw_rlock_int+0xd5/frame 0xfffffe104f86ee90 > getblk() at getblk+0xdb/frame 0xfffffe104f86ef40 > breadn_flags() at breadn_flags+0x6e/frame 0xfffffe104f86eff0 > ffs_getcg() at ffs_getcg+0x20d/frame 0xfffffe104f86f0d0 > ffs_nodealloccg() at ffs_nodealloccg+0xd0/frame 0xfffffe104f86f210 > ffs_hashalloc() at ffs_hashalloc+0xb7/frame 0xfffffe104f86f290 > ffs_valloc() at ffs_valloc+0x1c1/frame 0xfffffe104f86f390 > ufs_makeinode() at ufs_makeinode+0xba/frame 0xfffffe104f86f520 > ufs_create() at ufs_create+0x34/frame 0xfffffe104f86f540 > VOP_CREATE_APV() at VOP_CREATE_APV+0x241/frame 0xfffffe104f86f5c0 > VOP_CREATE() at VOP_CREATE+0x59/frame 0xfffffe104f86f620 > vn_open_cred() at vn_open_cred+0x311/frame 0xfffffe104f86f770 > vn_open() at vn_open+0x4c/frame 0xfffffe104f86f7b0 > kern_openat() at kern_openat+0x212/frame 0xfffffe104f86f920 > syscallenter() at syscallenter+0x4e4/frame 0xfffffe104f86f9f0 > amd64_syscall() at amd64_syscall+0x4d/frame 0xfffffe104f86fab0 > > https://people.freebsd.org/~pho/stress/log/mateusz004.txt > > - Peter > Fixed in r326237. -- Mateusz Guzik