Skip to content
Commit 05caf8db authored by Zhang, Yanmin's avatar Zhang, Yanmin Committed by Jens Axboe
Browse files

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: default avatarZhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent ca39d651
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment