Skip to content
Snippets Groups Projects
Commit 7e81f99a authored by Martijn Coenen's avatar Martijn Coenen Committed by Jens Axboe
Browse files

loop: Only change blocksize when needed.


Return early in loop_set_block_size() if the requested block size is
identical to the one we already have; this avoids expensive calls to
freeze the block queue.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartijn Coenen <maco@android.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 596444e7
No related branches found
No related tags found
No related merge requests found
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