diff options
author | Tejun Heo <[email protected]> | 2012-03-05 13:15:25 -0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2012-03-06 21:27:24 +0100 |
commit | 3d48749d93a3dce732dd30a14002ab90ec4355f3 (patch) | |
tree | 50ce414ec87e590493476cf644092439c5f337fd /lib/mpi/mpi-inv.c | |
parent | 24acfc34fba0b4f62ef9d5c2616eb0faa802b606 (diff) |
block: ioc_task_link() can't fail
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: Tejun Heo <[email protected]>
Cc: Vivek Goyal <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions