Skip to content
Commit 0a1b8b87 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: make blk_poll() take a parameter on whether to spin or not



blk_poll() has always kept spinning until it found an IO. This is
fine for SYNC polling, since we need to find one request we have
pending, but in preparation for ASYNC polling it can be beneficial
to just check if we have any entries available or not.

Existing callers are converted to pass in 'spin == true', to retain
the old behavior.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e7d94391
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