btrfs-progs: add udev rule to use mq-deadline on zoned btrfs
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>
This commit is contained in:
parent
b788f1dc58
commit
1aa806a66c
|
@ -0,0 +1,9 @@
|
|||
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"
|
2
Makefile
2
Makefile
|
@ -231,7 +231,7 @@ image_objects = image/main.o image/sanitize.o
|
|||
all_objects = $(objects) $(cmds_objects) $(libbtrfs_objects) $(convert_objects) \
|
||||
$(mkfs_objects) $(image_objects) $(libbtrfsutil_objects)
|
||||
|
||||
udev_rules = 64-btrfs-dm.rules
|
||||
udev_rules = 64-btrfs-dm.rules 64-btrfs-zoned.rules
|
||||
|
||||
ifeq ("$(origin V)", "command line")
|
||||
BUILD_VERBOSE = $(V)
|
||||
|
|
Loading…
Reference in New Issue