[PATCH] loop: potential kernel hang waiting for kthread
authorHerbert Poetzl <herbert@13thfloor.at>
Sun, 26 Mar 2006 09:37:30 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:56:57 +0000 (08:56 -0800)
commit3e88c17d404c5787afd5bd1763380317f5ccbf84
tree913f04bd00842b2b45ec2ead7ab93d16c037465b
parent22e6c1b39c648850438decd491f62d311800c7db
[PATCH] loop: potential kernel hang waiting for kthread

Check that kernel_thread() succeeded, so we don't wait for something which
cannot happen.

Signed-off-by: Herbert Poetzl <herbert@13thfloor.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/loop.c