]> www.infradead.org Git - nvme.git/commit
kyber: constify sysfs attributes
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 2 Jan 2025 12:01:34 +0000 (13:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jan 2025 20:20:29 +0000 (13:20 -0700)
commit00aab2f236f25f3dc3c88eee1b8ccb0cbcae3f99
treed8d324670c0fe2f82dec73931cbc6c3bb508c2c2
parentc40f9f6ac59f949b6cbf10903fa2aae76efffa20
kyber: 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-4-9837d2058c60@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/kyber-iosched.c