Skip to content
  • Bart Van Assche's avatar
    block: Reduce sysfs_lock locking inside blk_cleanup_queue() · 73f1c77e
    Bart Van Assche authored
    
    
    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: default avatarBart Van Assche <bvanassche@acm.org>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    73f1c77e