Skip to content
Commit b54c2ad9 authored by Jinlong Chen's avatar Jinlong Chen Committed by Jens Axboe
Browse files

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: default avatarJinlong Chen <nickyc975@zju.edu.cn>
[hch: split from a larger patch]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221020064819.1469928-4-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 58367c8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment