From: Pavel Emelianov Date: Tue, 8 May 2007 07:30:42 +0000 (-0700) Subject: jbd: check for error returned by kthread_create on creating journal thread X-Git-Tag: v2.6.22-rc1~633 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f067846786d255888ccad14e2f38a1f63d8e9b;p=pandora-kernel.git jbd: check for error returned by kthread_create on creating journal thread If the thread failed to create the subsequent wait_event will hang forever. This is likely to happen if kernel hits max_threads limit. Will be critical for virtualization systems that limit the number of tasks and kernel memory usage within the container. (akpm: JBD should be converted fully to the kthread API: kthread_should_stop() and kthread_stop()). Cc: Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed