commit | 7e81f99afd91c937f0e66dc135e26c1c4f78b003 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@android.com> | Tue Mar 10 14:12:30 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Mar 10 14:10:41 2020 -0600 |
tree | 4a2cf8b54c31648cc9d53190641bc6ac04d49add | |
parent | 596444e7570587867924c3ab025183b1a8726897 [diff] |
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: Christoph Hellwig <hch@lst.de> Signed-off-by: Martijn Coenen <maco@android.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>