Re: [PATCH 1/2] kill-the-bkl/reiserfs: acquire the inode mutex safely

From: Jeff Mahoney
Date: Fri Jun 05 2009 - 15:32:38 EST


-----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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/