block: move sysfs_lock into elevator_init
authorChristoph Hellwig <hch@lst.de>
Thu, 31 May 2018 17:11:39 +0000 (19:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Jun 2018 13:38:19 +0000 (07:38 -0600)
commitacddf3b308f6b6e23653de02e1abf98f402f1f12
tree296aa44427ee604597d22412d212ae9744f7dd92
parentddb7253254fee6922764043101f8b28b6a00595d
block: move sysfs_lock into elevator_init

Both callers take just around so function call, so move it in.
Also remove the now pointless blk_mq_sched_init wrapper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq-sched.c
block/blk-mq-sched.h
block/blk-mq.c
block/elevator.c