commit | 0fbcf57982346763ec636f176d5afaa367b5f71b | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@android.com> | Tue Mar 10 14:06:54 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Mar 10 14:10:43 2020 -0600 |
tree | c4afc928ce00778cb884a6625795a949a246d904 | |
parent | 7e81f99afd91c937f0e66dc135e26c1c4f78b003 [diff] |
loop: Only freeze block queue when needed. __loop_update_dio() can be called as a part of loop_set_fd(), when the block queue is not yet up and running; avoid freezing the block queue in that case, since that is an expensive operation. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Martijn Coenen <maco@android.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>