diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-11-04 10:45:53 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:05 +0100 |
commit | df903e5d294f62e07280566e0afe9403a92879f0 (patch) | |
tree | 83f7e6680135e2de402852ee7a48d260726bc7ad /fs/btrfs/sysfs.c | |
parent | btrfs: discard: store async discard delay as ns not as jiffies (diff) | |
download | linux-df903e5d294f62e07280566e0afe9403a92879f0.tar.xz linux-df903e5d294f62e07280566e0afe9403a92879f0.zip |
btrfs: don't miss async discards after scheduled work override
If btrfs_discard_schedule_work() is called with override=true, it sets
delay anew regardless how much time is left until the timer should have
fired. If delays are long (that can happen, for example, with low
kbps_limit), they might get constantly overridden without having a
chance to run the discard work.
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>
Diffstat (limited to 'fs/btrfs/sysfs.c')
0 files changed, 0 insertions, 0 deletions