Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756100AbaLJGQB (ORCPT ); Wed, 10 Dec 2014 01:16:01 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:51775 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751351AbaLJGP7 (ORCPT ); Wed, 10 Dec 2014 01:15:59 -0500 Date: Wed, 10 Dec 2014 06:15:53 +0000 From: Sitsofe Wheeler To: Kent Overstreet , Neil Brown , linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org Subject: bcache blocking ops and lockdep warnings Message-ID: <20141210061552.GA2062@sucs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, After doing make-bcache -B /dev/sdf make-bcache -C /dev/sdh ls -l /sys/fs/bcache echo 1110734d-230c-4b8f-a63d-dff472a0977b > /sys/block/bcache0/bcache/attach the following warnings were produced with a 3.18.0.x86_64-01967-g86c6a2f kernel: [ 75.218601] bcache: register_bdev() registered backing device sdf [ 82.616568] bcache: run_cache_set() invalidating existing data [ 82.621589] ------------[ cut here ]------------ [ 82.622890] WARNING: CPU: 1 PID: 979 at kernel/sched/core.c:7301 __might_sleep+0x5c/0xa0() [ 82.624344] do not call blocking ops when !TASK_RUNNING; state=1 set at [] bch_allocator_thread+0xd8/0xe30 [ 82.625979] CPU: 1 PID: 979 Comm: bcache_allocato Not tainted 3.18.0.x86_64-01967-g86c6a2f #162 [ 82.627468] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090006 05/23/2012 [ 82.628949] 0000000000000009 ffff8800da963ce8 ffffffff816ea8af 0000000000000001 [ 82.634007] ffff8800da963d38 ffff8800da963d28 ffffffff81073f3c ffff8800da963d28 [ 82.639020] ffffffff819d431c 0000000000000038 0000000000000000 ffff8800e468a680 [ 82.643967] Call Trace: [ 82.645045] [] dump_stack+0x4e/0x68 [ 82.646345] [] warn_slowpath_common+0x7c/0xa0 [ 82.647622] [] warn_slowpath_fmt+0x46/0x50 [ 82.648954] [] ? bch_allocator_thread+0xd8/0xe30 [ 82.650338] [] ? bch_allocator_thread+0xd8/0xe30 [ 82.651667] [] __might_sleep+0x5c/0xa0 [ 82.652959] [] bch_allocator_thread+0x1c7/0xe30 [ 82.654335] [] ? bch_invalidate_one_bucket+0x80/0x80 [ 82.655672] [] kthread+0x103/0x110 [ 82.656939] [] ? __kthread_unpark+0x50/0x50 [ 82.658294] [] ret_from_fork+0x7c/0xb0 [ 82.659664] [] ? __kthread_unpark+0x50/0x50 [ 82.660970] ---[ end trace 15295ea1be01c8a2 ]--- [ 82.683570] ------------[ cut here ]------------ [ 82.684559] WARNING: CPU: 7 PID: 974 at kernel/locking/lockdep.c:712 __lock_acquire+0x21c/0x1c60() [ 82.684559] CPU: 7 PID: 974 Comm: bcache-register Tainted: G W 3.18.0.x86_64-01967-g86c6a2f #162 [ 82.684559] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090006 05/23/2012 [ 82.684559] 0000000000000009 ffff8800dac8f988 ffffffff816ea8af 0000000000000000 [ 82.684559] 0000000000000000 ffff8800dac8f9c8 ffffffff81073f3c ffff8800dac8f9c8 [ 82.684559] ffffffff82668240 0000000000000000 ffff8800dac3da88 0000000000000001 [ 82.684559] Call Trace: [ 82.684559] [] dump_stack+0x4e/0x68 [ 82.684559] [] warn_slowpath_common+0x7c/0xa0 [ 82.684559] [] warn_slowpath_null+0x1a/0x20 [ 82.684559] [] __lock_acquire+0x21c/0x1c60 [ 82.684559] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 82.684559] [] ? rcu_irq_exit+0x8f/0xb0 [ 82.684559] [] ? __lock_acquire+0x1bc6/0x1c60 [ 82.684559] [] lock_acquire+0xfc/0x150 [ 82.684559] [] ? mca_reap+0x6c/0x170 [ 82.684559] [] down_write_trylock+0x61/0x80 [ 82.684559] [] ? mca_reap+0x6c/0x170 [ 82.684559] [] mca_reap+0x6c/0x170 [ 82.684559] [] mca_alloc+0xe0/0x4b0 [ 82.684559] [] __bch_btree_node_alloc+0xb3/0x240 [ 82.684559] [] run_cache_set+0x6ea/0x950 [ 82.684559] [] ? kernfs_add_one+0x10e/0x160 [ 82.684559] [] register_bcache+0x167f/0x19e0 [ 82.684559] [] kobj_attr_store+0xf/0x20 [ 82.684559] [] sysfs_kf_write+0x48/0x60 [ 82.684559] [] kernfs_fop_write+0xe7/0x170 [ 82.684559] [] vfs_write+0xcb/0x1d0 [ 82.684559] [] ? retint_swapgs+0x13/0x1b [ 82.684559] [] SyS_write+0x49/0xb0 [ 82.684559] [] system_call_fastpath+0x12/0x17 [ 82.684559] ---[ end trace 15295ea1be01c8a3 ]--- [ 82.763919] bcache: register_cache() registered cache device sdh -- Sitsofe | http://sucs.org/~sits/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/