From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc MERLIN Subject: Re: every boot gives: bcache/alloc.c:78 WARNING Date: Wed, 3 Aug 2016 20:23:44 -0700 Message-ID: <20160804032344.GA25091@merlins.org> References: <20160803231919.GA13477@merlins.org> <20160804003351.GI31234@merlins.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from magic.merlins.org ([209.81.13.136]:40805 "EHLO mail1.merlins.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752128AbcHDDYM (ORCPT ); Wed, 3 Aug 2016 23:24:12 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-bcache-owner@vger.kernel.org List-Id: linux-bcache@vger.kernel.org To: Eric Wheeler Cc: linux-bcache@vger.kernel.org On Wed, Aug 03, 2016 at 07:44:41PM -0700, Eric Wheeler wrote: > > When you say do "that" do you mean `trigger_gc` ? > > > > I think trigger_gc a cache thing, but the whole bcacheN dev might need to > > be online before it can be triggered (not sure). Backing devices really > > have metadata, just superblock. > > I meant to say: > > Backing devices have no metadata, just superblock. Mmmh, doing this just killed my cache: saruman:/sys/block/bcache0# echo 1 > /sys/fs/bcache/7f2e1508-8db6-48cb-85d6-606c88f81f63/internal/trigger_gc [ 1639.204612] bcache: error on fc8cd783-346b-48f5-a619-fb0380584aa9: key too stale: 97, need_gc 97, disabling caching [ 1639.204625] CPU: 7 PID: 519 Comm: bcache_gc Tainted: G W OE 4.4.5-amd64-volpreempt-sysrq-20160312bc5 #10 [ 1639.204627] Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015 [ 1639.204629] 0000000000000000 ffff8808781fbbc0 ffffffff8134d88e ffff880875040ab8 [ 1639.204635] ffff88087a3edcd0 ffff8808781fbc00 ffffffffc03b8609 0000000000000001 [ 1639.204639] ffff880875040ab8 ffffffffc03b17ed ffff88087a3edcd0 ffff8808781fbc50 [ 1639.204644] Call Trace: [ 1639.204649] [] dump_stack+0x61/0x7d [ 1639.204668] [] bch_extent_bad+0xd7/0x12b [bcache] [ 1639.204677] [] ? bch_ptr_invalid+0xc/0xc [bcache] [ 1639.204684] [] bch_ptr_bad+0xa/0xc [bcache] [ 1639.204690] [] bch_btree_iter_next_filter+0x32/0x42 [bcache] [ 1639.204695] [] btree_gc_count_keys+0x3b/0x59 [bcache] [ 1639.204701] [] btree_gc_recurse+0x11b/0x2db [bcache] [ 1639.204705] [] ? __schedule+0x3b1/0x575 [ 1639.204710] [] ? __bch_btree_mark_key+0xba/0x1a4 [bcache] [ 1639.204716] [] bch_btree_gc+0x246/0x3cc [bcache] [ 1639.204722] [] ? bch_btree_gc+0x246/0x3cc [bcache] [ 1639.204725] [] ? wake_up_atomic_t+0x2c/0x2c [ 1639.204731] [] bch_gc_thread+0x37/0xea [bcache] [ 1639.204736] [] ? bch_btree_gc+0x3cc/0x3cc [bcache] [ 1639.204741] [] ? bch_btree_gc+0x3cc/0x3cc [bcache] [ 1639.204745] [] kthread+0xa5/0xad [ 1639.204747] [] ? kthread_parkme+0x24/0x24 [ 1639.204750] [] ret_from_fork+0x3f/0x70 [ 1639.204752] [] ? kthread_parkme+0x24/0x24 [ 1639.246944] bcache: cache_set_free() Cache set fc8cd783-346b-48f5-a619-fb0380584aa9 unregistered That's not good. What should I do now? Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/