]> git.baikalelectronics.ru Git - kernel.git/commit
block: restructure get_request()
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:23 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:24 +0000 (21:27 +0100)
commitdcda77378e59c991dda0bc027943ed8360c62a19
treef3966a921a4c07ebf80d57a46a80ef0a71e8354a
parent49354648d1076dd7618904edb8017fc86152e5f9
block: restructure get_request()

get_request() is structured a bit unusually in that failure path is
inlined in the usual flow with goto labels atop and inside it.
Relocate the error path to the end of the function.

This is to prepare for icq handling changes in get_request() and
doesn't introduce any behavior change.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c