commit | 2b30a533148af4f3865c0dcd619ad93ab3f4ba52 | [log] [tgz] |
---|---|---|
author | Kirill Tkhai <ktkhai@virtuozzo.com> | Mon Aug 27 18:29:37 2018 +0300 |
committer | Miklos Szeredi <mszeredi@redhat.com> | Fri Sep 28 16:43:22 2018 +0200 |
tree | fd25fe80e8ff83649d05d6eda7328447909ba628 | |
parent | 2a23f2b8adbe4bd584f936f7ac17a99750eed9d7 [diff] |
fuse: add locking to max_background and congestion_threshold changes Functions sequences like request_end()->flush_bg_queue() require that max_background and congestion_threshold are constant during their execution. Otherwise, checks like if (fc->num_background == fc->max_background) made in different time may behave not like expected. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>