Skip to content
Commit efc4105a authored by Kemeng Shi's avatar Kemeng Shi Committed by Miklos Szeredi
Browse files

fuse: remove unneeded lock which protecting update of congestion_threshold



Commit 670d21c6 ("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: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 738adade
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment