From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755591Ab0KNNvM (ORCPT ); Sun, 14 Nov 2010 08:51:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11902 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752611Ab0KNNvM (ORCPT ); Sun, 14 Nov 2010 08:51:12 -0500 Message-ID: <4CDFE948.4020709@redhat.com> Date: Sun, 14 Nov 2010 15:51:04 +0200 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.6 MIME-Version: 1.0 To: Ian Kent , autofs@linux.kernel.org CC: linux-kernel Subject: Re: autofs4 hang in 2.6.37-rc1 References: <4CDFDC2B.6040205@redhat.com> In-Reply-To: <4CDFDC2B.6040205@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/14/2010 02:55 PM, Avi Kivity wrote: > A 2.6.37-rc1 (f6614b7bb405a) setup hangs in autofs4: > > INFO: task automount:10399 blocked for more than 120 seconds. > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > automount D 0000000000000000 0 10399 1 0x00000000 > ffff88012a059da8 0000000000000082 0000000000000000 0000000000000000 > ffff88012a058010 ffff88012a059fd8 0000000000011800 ffff8801290f2c40 > ffff8801290f2fb0 ffff8801290f2fa8 0000000000011800 0000000000011800 > Call Trace: > [] __mutex_lock_common+0x126/0x18b > [] __mutex_lock_slowpath+0x14/0x16 > [] mutex_lock+0x31/0x4b > [] autofs4_root_ioctl+0x28/0x53 > [] do_vfs_ioctl+0x557/0x5bb > [] ? sys_newlstat+0x2d/0x38 > [] sys_ioctl+0x42/0x65 > [] system_call_fastpath+0x16/0x1b > > This is a simple /home automount. More info on request. > Likely culprit: automount S ffff88012a28a680 0 399 1 0x00000000 ffff88012a07bd08 0000000000000082 0000000000000000 0000000000000000 ffff88012a07a010 ffff88012a07bfd8 0000000000011800 ffff88012693c260 ffff88012693c5d0 ffff88012693c5c8 0000000000011800 0000000000011800 Call Trace: [] ? prepare_to_wait+0x67/0x74 [] autofs4_wait+0x5a4/0x6d5 [] ? autoremove_wake_function+0x0/0x34 [] autofs4_do_expire_multi+0x5b/0xa3 [] autofs4_expire_multi+0x4c/0x54 [] autofs4_root_ioctl_unlocked+0x23e/0x252 [] autofs4_root_ioctl+0x39/0x53 [] do_vfs_ioctl+0x557/0x5bb [] ? remove_vma+0x6e/0x76 [] ? do_munmap+0x31c/0x33e [] sys_ioctl+0x42/0x65 [] system_call_fastpath+0x16/0x1b Shouldn't we drop autofs4_ioctl_mutex while we wait? -- error compiling committee.c: too many arguments to function