• Eric Dumazet's avatar
    block: avoid infinite loop in get_task_io_context() · 3c9c708c
    Eric Dumazet authored
    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: default avatarEric 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: default avatarJens Axboe <axboe@kernel.dk>
blk-ioc.c 10.2 KB