]> www.infradead.org Git - nvme.git/commit
block: mq-deadline: Constify sysfs attributes
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 2 Jan 2025 12:01:32 +0000 (13:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jan 2025 20:20:29 +0000 (13:20 -0700)
commit8686e1dedac7190d2f148b23e4f1ac69d2e37d6b
tree304f9f76596a013dd772f75c76b71ac3ffe1f41b
parent044792cda05a97ae1da330771ec2140ae86439ec
block: mq-deadline: Constify sysfs attributes

The elevator core now allows instances of 'struct elv_fs_entry' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20250102-sysfs-const-attr-elevator-v1-2-9837d2058c60@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c