From: Tejun Heo Date: Tue, 5 Jun 2012 03:40:56 +0000 (-0700) Subject: block: allocate io_context upfront X-Git-Tag: v3.6-rc1~6^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f4b35d155a5f9e5748539a79558533aa08d6a81;p=pandora-kernel.git block: allocate io_context upfront Block layer very lazy allocation of ioc. It waits until the moment ioc is absolutely necessary; unfortunately, that time could be inside queue lock and __get_request() performs unlock - try alloc - retry dancing. Just allocate it up-front on entry to block layer. We're not saving the rain forest by deferring it to the last possible moment and complicating things unnecessarily. This patch is to prepare for further updates to request allocation path. Signed-off-by: Tejun Heo Acked-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed