]> git.baikalelectronics.ru Git - kernel.git/commit
block: Reduce sysfs_lock locking inside blk_cleanup_queue()
authorBart Van Assche <bvanassche@acm.org>
Mon, 30 Sep 2019 23:00:44 +0000 (16:00 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 Oct 2019 14:31:59 +0000 (08:31 -0600)
commit101f2f86cb2aaff73908b2c9797b46bf9bc15f88
tree3a7fb97a3f7513d8551320623a1523379b405a53
parent5f19aaf268f7c1133de7b38d973a118996873925
block: Reduce sysfs_lock locking inside blk_cleanup_queue()

Since blk_cleanup_queue() is called after blk_unregister_queue() and
since that last function removes all sysfs attributes, serializing
any code in blk_cleanup_queue() against sysfs callback methods nor against
I/O scheduler changes is necessary. Hence remove the syfs_lock locking
calls from the start of blk_cleanup_queue().

Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c