Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753680AbZFETce (ORCPT ); Fri, 5 Jun 2009 15:32:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752153AbZFETc1 (ORCPT ); Fri, 5 Jun 2009 15:32:27 -0400 Received: from cantor2.suse.de ([195.135.220.15]:56461 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbZFETc0 (ORCPT ); Fri, 5 Jun 2009 15:32:26 -0400 Message-ID: <4A29723C.2030102@suse.com> Date: Fri, 05 Jun 2009 15:30:04 -0400 From: Jeff Mahoney Organization: SUSE Labs, Novell, Inc User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: "Trenton D. Adams" Cc: Frederic Weisbecker , Al Viro , Reiserfs , LKML , Stephen Rothwell , Chris Mason , Ingo Molnar , Alexander Beregalov Subject: Re: [PATCH 1/2] kill-the-bkl/reiserfs: acquire the inode mutex safely References: <1242496922-6330-1-git-send-email-fweisbec@gmail.com> <1242496922-6330-2-git-send-email-fweisbec@gmail.com> <9b1675090905292005p2b53de7dy9e36f84368d76f01@mail.gmail.com> <4A296343.4050005@suse.com> <9b1675090906051206we136e88k6a14194963726709@mail.gmail.com> In-Reply-To: <9b1675090906051206we136e88k6a14194963726709@mail.gmail.com> X-Enigmail-Version: 0.95.2 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 Content-Length: 2082 Lines: 67 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Trenton D. Adams wrote: > FYI: I never did anything specific that I knew of, so I didn't > actually notice a delay. I was rsyncing to a USB key at the time. > And seeing it took over an hour, I walked away, so I wouldn't have > noticed it. But, I could fiddle around a little to see if I could get > some sort of delay going on. Any ideas on what I should try? Then I > can do the sysreq+t for you if I can reproduce. Well if the rsync triggered it, that's a good start. Try applying the following patch as well. It will cause the hung task detector to do a sysrq+t automatically so it's not as much of a guessing game. You'll need to boot with hung_task_show_state=1. - -Jeff - --- kernel/hung_task.c | 11 +++++++++++ 1 file changed, 11 insertions(+) - --- a/kernel/hung_task.c +++ b/kernel/hung_task.c @@ -56,6 +56,14 @@ static int __init hung_task_panic_setup( } __setup("hung_task_panic=", hung_task_panic_setup); +unsigned int __read_mostly sysctl_hung_task_show_state; +static int __init hung_task_show_state_setup(char *str) +{ + sysctl_hung_task_show_state = simple_strtoul(str, NULL, 0); + return 1; +} +__setup("hung_task_show_state=", hung_task_show_state_setup); + static int hung_task_panic(struct notifier_block *this, unsigned long event, void *ptr) { @@ -102,6 +110,9 @@ static void check_hung_task(struct task_ touch_nmi_watchdog(); + if (sysctl_hung_task_show_state) + show_state(); + if (sysctl_hung_task_panic) panic("hung_task: blocked tasks"); } - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkopcjwACgkQLPWxlyuTD7IEdgCfVVzIL/DA0stfnYEW6aixFwxM qIEAnjJjyn6HQAbVIicRYzvNcGvPwbiq =z8Pn -----END PGP SIGNATURE----- -- 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/