Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754679AbbKJRQl (ORCPT ); Tue, 10 Nov 2015 12:16:41 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:49264 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752834AbbKJRQj (ORCPT ); Tue, 10 Nov 2015 12:16:39 -0500 Subject: Re: [lkp] [directio] fccce5610a: WARNING: CPU: 0 PID: 4493 at kernel/sched/core.c:7533 __might_sleep+0x60/0x7c() To: kernel test robot References: <87egfyd308.fsf@yhuang-dev.intel.com> CC: , LKML , Christoph Hellwig From: Jens Axboe Message-ID: <5642266E.4020301@fb.com> Date: Tue, 10 Nov 2015 10:16:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <87egfyd308.fsf@yhuang-dev.intel.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.54.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-11-10_13:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3270 Lines: 56 On 11/09/2015 07:03 PM, kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-4.4/io-poll > commit fccce5610a68137c8e974d51719a81344b16750b ("directio: add block polling support") > > > [ 1667.891609] WARNING: CPU: 0 PID: 4493 at kernel/sched/core.c:7533 __might_sleep+0x60/0x7c() > [ 1667.893783] do not call blocking ops when !TASK_RUNNING; state=2 set at [] do_blockdev_direct_IO+0xad5/0xc03 > [ 1667.903111] Modules linked in: > [ 1667.903913] CPU: 0 PID: 4493 Comm: xfs_io Tainted: G W 4.3.0-06686-gfccce56 #1 > [ 1667.906139] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 > [ 1667.908049] 0000000000000000 ffff88001c183880 ffffffff81734662 ffff88001c1838c8 > [ 1667.909852] ffff88001c1838b8 ffffffff810d77de ffffffff810f9564 ffffffff83a72b20 > [ 1667.911666] 00000000000004a7 0000000000000000 0000000000000014 ffff88001c183920 > [ 1667.920421] Call Trace: > [ 1667.921097] [] dump_stack+0x4b/0x63 > [ 1667.922112] [] warn_slowpath_common+0x99/0xb2 > [ 1667.923521] [] ? __might_sleep+0x60/0x7c > [ 1667.924878] [] warn_slowpath_fmt+0x48/0x50 > [ 1667.926234] [] ? do_blockdev_direct_IO+0xad5/0xc03 > [ 1667.936206] [] ? do_blockdev_direct_IO+0xad5/0xc03 > [ 1667.937509] [] __might_sleep+0x60/0x7c > [ 1667.938777] [] __do_page_fault+0x24d/0x412 > [ 1667.942327] [] trace_do_page_fault+0x14b/0x1ee > [ 1667.943889] [] do_async_page_fault+0x31/0x63 > [ 1667.946861] [] async_page_fault+0x28/0x30 > [ 1667.947989] [] ? do_blockdev_direct_IO+0xb07/0xc03 > [ 1667.951321] [] ? __lock_acquire+0x65b/0xdee > [ 1667.952486] [] ? btrfs_page_exists_in_range+0x1ce/0x1ce > [ 1667.957004] [] ? finish_ordered_fn+0x17/0x17 > [ 1667.958410] [] __blockdev_direct_IO+0x31/0x33 > [ 1667.962900] [] ? __blockdev_direct_IO+0x31/0x33 > [ 1667.966229] [] ? finish_ordered_fn+0x17/0x17 > [ 1667.967416] [] btrfs_direct_IO+0x1b6/0x252 > [ 1667.970738] [] ? finish_ordered_fn+0x17/0x17 > [ 1667.974253] [] generic_file_direct_write+0xb3/0x128 > [ 1667.975749] [] btrfs_file_write_iter+0x22c/0x40e > [ 1667.980342] [] ? __lock_is_held+0x3c/0x57 > [ 1667.981579] [] __vfs_write+0x7c/0xa5 > [ 1667.984778] [] vfs_write+0xa0/0xeb > [ 1667.985853] [] SyS_pwrite64+0x65/0x84 > [ 1668.008257] [] entry_SYSCALL_64_fastpath+0x12/0x76 Thanks, fixed: http://git.kernel.dk/cgit/linux-block/commit/?h=for-4.4/io-poll&id=c1c534609fe8a859f9c8108a5591e6e8a97e34d1 -- Jens Axboe -- 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/