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: NChristoph Hellwig <hch@lst.de> Signed-off-by: NMartijn Coenen <maco@android.com> Signed-off-by: NJens Axboe <axboe@kernel.dk>
Showing
想要评论请 注册 或 登录