]> git.baikalelectronics.ru Git - kernel.git/commit
block: avoid infinite loop in get_task_io_context()
authorEric Dumazet <edumazet@google.com>
Thu, 31 May 2012 11:39:05 +0000 (13:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 May 2012 11:39:05 +0000 (13:39 +0200)
commite3796d04a9d2ccb9c8f479dbd924932b18a5c8ce
tree946eeefd4599bb1adafd87ad8f46d52382935001
parent44ac75d87722980934825888b89e64709c843c5a
block: avoid infinite loop in get_task_io_context()

Calling get_task_io_context() on a exiting task which isn't %current can
loop forever. This triggers at boot time on my dev machine.

BUG: soft lockup - CPU#3 stuck for 22s ! [mountall.1603]

Fix this by making create_task_io_context() returns -EBUSY in this case
to break the loop.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c