From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686AbaIWCuE (ORCPT ); Mon, 22 Sep 2014 22:50:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41528 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751650AbaIWCuB (ORCPT ); Mon, 22 Sep 2014 22:50:01 -0400 Date: Mon, 22 Sep 2014 22:49:47 -0400 From: Dave Jones To: Linux Kernel Cc: axboe@kernel.dk Subject: sleeping while atomic in blk_free_devt Message-ID: <20140923024947.GA4760@redhat.com> Mail-Followup-To: Dave Jones , Linux Kernel , axboe@kernel.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just got this when removing a USB memory stick. BUG: sleeping function called from invalid context at block/genhd.c:448 in_atomic(): 1, irqs_disabled(): 0, pid: 13, name: rcuop/3 1 lock held by rcuop/3/13: #0: (rcu_callback){......}, at: [] rcu_nocb_kthread+0x260/0x1070 Preemption disabled at:[] debug_object_deactivate+0x8f/0x160 CPU: 1 PID: 13 Comm: rcuop/3 Not tainted 3.17.0-rc6+ #55 ffffffffa8c980f7 00000000325b7c43 ffff8802430b7c80 ffffffffa8819400 0000000000000000 ffff8802430b7ca8 ffffffffa80a8be3 0000000000800011 ffff88023d8a4150 ffff8800a08d0920 ffff8802430b7cc0 ffffffffa8370b2f Call Trace: [] dump_stack+0x4e/0x7a [] __might_sleep+0x1a3/0x290 [] blk_free_devt+0x1f/0x70 [] part_release+0x18/0x40 [] device_release+0x32/0xa0 [] kobject_release+0x7a/0x1c0 [] kobject_put+0x2d/0x60 [] put_device+0x17/0x20 [] delete_partition_rcu_cb+0xc4/0xd0 [] ? read_dev_sector+0xa0/0xa0 [] rcu_nocb_kthread+0x73f/0x1070 [] ? rcu_nocb_kthread+0x260/0x1070 [] ? __schedule+0x3a6/0xc30 [] ? wake_up_atomic_t+0x30/0x30 [] ? rcu_read_unlock_special.part.61+0x510/0x510 [] kthread+0x108/0x120 [] ? debug_smp_processor_id+0x17/0x20 [] ? kthread_create_on_node+0x250/0x250 [] ret_from_fork+0x7c/0xb0 [] ? kthread_create_on_node+0x250/0x250