]> git.baikalelectronics.ru Git - kernel.git/commit
block: Move the second call to get_request to the end of the loop
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>
Thu, 22 May 2008 13:13:29 +0000 (15:13 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 May 2008 12:49:27 +0000 (14:49 +0200)
commit5ab6663b747b4b872fbff402920796879158e983
tree71b2a0839739c4a3e54e7d40d1a2358d61c8b279
parent851743fabcc164e1d3613eaaa60f4b1d6b7a918b
block: Move the second call to get_request to the end of the loop

In function get_request_wait, the second call to get_request could be
moved to the end of the while loop, because if the first call to
get_request fails, the second call will fail without sleep.

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c