From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759203Ab2HXRZY (ORCPT ); Fri, 24 Aug 2012 13:25:24 -0400 Received: from sabe.cs.wisc.edu ([128.105.6.20]:44977 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757739Ab2HXRYd (ORCPT ); Fri, 24 Aug 2012 13:24:33 -0400 Message-ID: <5037B8C1.8050903@cs.wisc.edu> Date: Fri, 24 Aug 2012 12:24:17 -0500 From: Mike Christie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Bart Van Assche CC: linux-kernel , Tejun Heo , Jens Axboe Subject: Re: Kernel hangs in truncate_inode_pages() References: <50377DDD.7060404@acm.org> In-Reply-To: <50377DDD.7060404@acm.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/24/2012 08:13 AM, Bart Van Assche wrote: > Hello, > > If I log in with the open-iscsi initiator to an iSCSI target an power > down the target the initiator hangs in truncate_inode_pages(). This > happens systematically with kernel 3.6-rc3 and it's something I've > never seen with kernel 3.4 or before. Has anyone else already run into > this issue ? > I have not seen this issue before and have not seen it reported. Are you doing IO the disk at the time of power down, or are you doing a iscsiadm -m node ... --logout command? > From the output of echo w >/proc/sysrq-trigger: > > SysRq : Show Blocked State > task PC stack pid father > udisks-part-id D ffffffff810f7530 0 30803 10057 0x00000006 > ffff8801063c39a8 0000000000000046 ffff880126955d60 0000000000000002 > ffff8801063c3fd8 ffff880126955d60 ffff8801063c3fd8 ffff8801063c3fd8 > ffffffff81813420 ffff880126955d60 ffff8801063c39a8 ffff88012fa13990 > Call Trace: > [] ? __lock_page+0x70/0x70 > [] schedule+0x29/0x70 > [] io_schedule+0x8f/0xd0 > [] sleep_on_page+0xe/0x20 > [] __wait_on_bit_lock+0x5a/0xc0 > [] ? find_get_pages+0x2a/0x1c0 > [] ? release_pages+0x1af/0x200 > [] __lock_page+0x67/0x70 > [] ? autoremove_wake_function+0x40/0x40 > [] truncate_inode_pages_range+0x456/0x480 > [] ? trace_hardirqs_on+0xd/0x10 > [] ? on_each_cpu_cond+0xaa/0xf0 > [] truncate_inode_pages+0x15/0x20 > [] kill_bdev+0x2f/0x40 > [] __blkdev_put+0x76/0x1d0 > [] blkdev_put+0x5d/0x180 > [] blkdev_close+0x25/0x30 > [] __fput+0xcc/0x240 > [] ____fput+0xe/0x10 > [] task_work_run+0x69/0xa0 > [] do_exit+0x78f/0x930 > [] ? get_signal_to_deliver+0xf0/0x6f0 > [] ? _raw_spin_lock_irq+0x17/0x60 > [] ? _raw_spin_unlock_irq+0x30/0x50 > [] do_group_exit+0x4e/0xc0 > [] get_signal_to_deliver+0x228/0x6f0 > [] do_signal+0x3c/0x620 > [] ? sysret_signal+0x5/0x3d > [] do_notify_resume+0x6d/0xb0 > [] ? trace_hardirqs_on_thunk+0x3a/0x3f > [] int_signal+0x12/0x17 > > Bart. >