summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
authorTejun Heo2012-06-05 05:40:56 +0200
committerJens Axboe2012-06-25 11:53:50 +0200
commit7f4b35d155a5f9e5748539a79558533aa08d6a81 (patch)
tree9e26e52852cd6b364d413b02b9c5379c5372be7e /block/blk-cgroup.h
parentblock: refactor get_request[_wait]() (diff)
downloadkernel-qcow2-linux-7f4b35d155a5f9e5748539a79558533aa08d6a81.tar.gz
kernel-qcow2-linux-7f4b35d155a5f9e5748539a79558533aa08d6a81.tar.xz
kernel-qcow2-linux-7f4b35d155a5f9e5748539a79558533aa08d6a81.zip
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 <tj@kernel.org> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions