Skip to content
Commit 2ac3cee5 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

block: don't grab block_class_lock unnecessarily



block_class_lock protects major_names array and bdev_map and doesn't
have anything to do with block class devices.  Don't grab them while
iterating over block class devices.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent ac65ece4
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