• Tejun Heo's avatar
    block: ioc_task_link() can't fail · 3d48749d
    Tejun Heo authored
    ioc_task_link() is used to share %current's ioc on clone.  If
    %current->io_context is set, %current is guaranteed to have refcount
    on the ioc and, thus, ioc_task_link() can't fail.
    
    Replace error checking in ioc_task_link() with WARN_ON_ONCE() and make
    it just increment refcount and nr_tasks.
    
    -v2: Description typo fix (Vivek).
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    3d48749d
fork.c 42.6 KB