From: Tejun Heo Date: Mon, 5 Mar 2012 21:15:25 +0000 (-0800) Subject: block: ioc_task_link() can't fail X-Git-Tag: v3.5-rc1~42^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d48749d93a3dce732dd30a14002ab90ec4355f3;p=pandora-kernel.git 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 Cc: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed