]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
jbd: check for error returned by kthread_create on creating journal thread
authorPavel Emelianov <xemul@sw.ru>
Tue, 8 May 2007 07:30:42 +0000 (00:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:13 +0000 (11:15 -0700)
commit97f067846786d255888ccad14e2f38a1f63d8e9b
treeebff291172a51b25a0a0c69c85463f0c789bb2ce
parentee6f958291e2a768fd727e7a67badfff0b67711a
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: <linux-ext4@vger.kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/jbd/journal.c
fs/jbd2/journal.c