summaryrefslogtreecommitdiff
path: root/block/blk-mq-sched.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-10-20 08:48:17 +0200
committerJens Axboe <axboe@kernel.dk>2022-10-23 18:59:17 -0600
commit58367c8a5f845498fd341e5687bab513925e4ac0 (patch)
treeadb084cfe60e6cd540516d5bf8670053ebf74800 /block/blk-mq-sched.c
parentdd6f7f17bf5831ac94d2b8ffe3d67dac201a9b97 (diff)
block: sanitize the elevator name before passing it to __elevator_change
The stripped name should also be used for the none check. To do so strip it in the caller and pass in the sanitized name. Drop the pointless __ prefix in the function name while we're at it. Based on a patch from Jinlong Chen <nickyc975@zju.edu.cn>. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20221020064819.1469928-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-sched.c')
0 files changed, 0 insertions, 0 deletions