diff options
| author | Kemeng Shi <[email protected]> | 2023-10-07 15:39:56 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2024-03-06 10:07:51 +0000 |
| commit | efc4105a4cf9e300b8e9150147415fa235059293 (patch) | |
| tree | a1e157570f24401384c192b449627be572514e0e /net/switchdev/switchdev.c | |
| parent | fuse: Fix missing FOLL_PIN for direct-io (diff) | |
| download | kernel-efc4105a4cf9e300b8e9150147415fa235059293.tar.gz kernel-efc4105a4cf9e300b8e9150147415fa235059293.zip | |
fuse: remove unneeded lock which protecting update of congestion_threshold
Commit 670d21c6e17f6 ("fuse: remove reliance on bdi congestion") change how
congestion_threshold is used and lock in
fuse_conn_congestion_threshold_write is not needed anymore.
1. Access to supe_block is removed along with removing of bdi congestion.
Then down_read(&fc->killsb) which protecting access to super_block is no
needed.
2. Compare num_background and congestion_threshold without holding
bg_lock. Then there is no need to hold bg_lock to update
congestion_threshold.
Signed-off-by: Kemeng Shi <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
