mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 22:53:35 +00:00
1aa806a66c
As zoned btrfs uses regular writes for metadata, it needs zone write locking in the IO scheduler. Add a udev rule that configures an IO scheduler doing zone write locking. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
10 lines
346 B
Plaintext
10 lines
346 B
Plaintext
SUBSYSTEM!="block", GOTO="btrfs_end"
|
|
ACTION!="add|change", GOTO="btrfs_end"
|
|
ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
|
|
|
|
# Zoned btrfs needs an IO scheduler that supports zone write locking and
|
|
# currently mq-deadline is the only scheduler capable of this.
|
|
ATTR{queue/zoned}=="host-managed", ATTR{queue/scheduler}="mq-deadline"
|
|
|
|
LABEL="btrfs_end"
|