From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756097Ab0KNPQA (ORCPT ); Sun, 14 Nov 2010 10:16:00 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:52697 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755826Ab0KNPP7 (ORCPT ); Sun, 14 Nov 2010 10:15:59 -0500 From: Arnd Bergmann To: Avi Kivity Subject: Re: autofs4 hang in 2.6.37-rc1 Date: Sun, 14 Nov 2010 16:15:32 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-rc1+; KDE/4.5.1; x86_64; ; ) Cc: Ian Kent , autofs@linux.kernel.org, "linux-kernel" References: <4CDFDC2B.6040205@redhat.com> <4CDFE948.4020709@redhat.com> In-Reply-To: <4CDFE948.4020709@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201011141615.32166.arnd@arndb.de> X-Provags-ID: V02:K0:2kBXvF6kGpeYN9G6cp8+YIR9jJJ3TDpGo/tozGFY4fh Rv3DOMqOXGJ+FaMdIFjSY1yHJemQnzSpYe+QTIqgJACi0gne6v lZu789YZatJJxoGu40YSVRW0D3O7SiasM+Y1Swt0QVodrYa1Ca t8FhHgNi4XmUyFSXPiixZ4Ycb4TkbXJppRSQdr2aH41YPw7bl6 p5nDPx6EcHgUNWM4i7kKA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 14 November 2010 14:51:04 Avi Kivity wrote: > 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? If the ioctl can sleep for multiple seconds, the mutex should indeed be dropped, and that would be safe because we used to do the same with the BKL. The question is why this would sleep for more than 120 seconds. Arnd