btrfs: merge critical sections of discard lock in workfn
stable inclusion from stable-5.10.9 commit f89d84b35af33b58ec67c78ac7cc670f57ae2466 bugzilla: 47457 -------------------------------- [ Upstream commit 8fc05859 ] btrfs_discard_workfn() drops discard_ctl->lock just to take it again in a moment in btrfs_discard_schedule_work(). Avoid that and also reuse ktime. 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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment