diff options
| author | Filipe Manana <[email protected]> | 2025-02-15 11:11:29 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-02-21 08:32:11 +0000 |
| commit | 15b3b3254d1453a8db038b7d44b311a2d6c71f98 (patch) | |
| tree | 95333eba55cb29d1a39e1d9a848b6ffedb2993bf /net/switchdev/switchdev.c | |
| parent | btrfs: skip inodes without loaded extent maps when shrinking extent maps (diff) | |
| download | kernel-15b3b3254d1453a8db038b7d44b311a2d6c71f98.tar.gz kernel-15b3b3254d1453a8db038b7d44b311a2d6c71f98.zip | |
btrfs: do regular iput instead of delayed iput during extent map shrinking
The extent map shrinker now runs in the system unbound workqueue and no
longer in kswapd context so it can directly do an iput() on inodes even
if that blocks or needs to acquire any lock (we aren't holding any locks
when requesting the delayed iput from the shrinker). So we don't need to
add a delayed iput, wake up the cleaner and delegate the iput() to the
cleaner, which also adds extra contention on the spinlock that protects
the delayed iputs list.
Reported-by: Ivan Shapovalov <[email protected]>
Tested-by: Ivan Shapovalov <[email protected]>
Link: https://lore.kernel.org/linux-btrfs/[email protected]/
CC: [email protected] # 6.12+
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
