block: check for an unchanged elevator earlier in __elevator_change
authorJinlong Chen <nickyc975@zju.edu.cn>
Thu, 20 Oct 2022 06:48:18 +0000 (08:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Oct 2022 00:59:17 +0000 (18:59 -0600)
commitb54c2ad9b77de846e42104ecf94eb8329d2f03a3
tree507461db15055975439c3e896e157678e815e92a
parent58367c8a5f845498fd341e5687bab513925e4ac0
block: check for an unchanged elevator earlier in __elevator_change

No need to find the actual elevator_type struct for this comparism,
the name is all that is needed.

Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn>
[hch: split from a larger patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221020064819.1469928-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c