UPSTREAM: 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. Bug: 148607611 Reviewed-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Martijn Coenen <maco@android.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk> (cherry picked from commit 7e81f99afd91c937f0e66dc135e26c1c4f78b003) Change-Id: I61778680579dbfeeb193133527a3926d376e0bac
Loading
Please register or sign in to comment