]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: discard: reschedule work after sysfs param update
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 4 Nov 2020 09:45:54 +0000 (09:45 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:05 +0000 (15:54 +0100)
commit3e48d8d2540d4c63461ec4cafb8f65355b6f7b57
tree0a138bd65c1d6a4395d2b5747f63109d567d1fc6
parentdf903e5d294f62e07280566e0afe9403a92879f0
btrfs: discard: reschedule work after sysfs param update

After sysfs updates discard's iops_limit or kbps_limit it also needs to
adjust current timer through rescheduling, otherwise the discard work
may wait for a long time for the previous timer to expire or bumped by
someone else.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c