Searched hist:"3 d48749d93a3dce732dd30a14002ab90ec4355f3" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | iocontext.h | diff 3d48749d93a3dce732dd30a14002ab90ec4355f3 Mon Mar 05 15:15:25 CST 2012 Tejun Heo <tj@kernel.org> 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 <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/kernel/ |
H A D | fork.c | diff 3d48749d93a3dce732dd30a14002ab90ec4355f3 Mon Mar 05 15:15:25 CST 2012 Tejun Heo <tj@kernel.org> 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 <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|