|
@@ -107,7 +107,7 @@ static ssize_t fuse_conn_max_background_read(struct file *file,
|
|
|
if (!fc)
|
|
|
return 0;
|
|
|
|
|
|
- val = fc->max_background;
|
|
|
+ val = READ_ONCE(fc->max_background);
|
|
|
fuse_conn_put(fc);
|
|
|
|
|
|
return fuse_conn_limit_read(file, buf, len, ppos, val);
|
|
@@ -144,7 +144,7 @@ static ssize_t fuse_conn_congestion_threshold_read(struct file *file,
|
|
|
if (!fc)
|
|
|
return 0;
|
|
|
|
|
|
- val = fc->congestion_threshold;
|
|
|
+ val = READ_ONCE(fc->congestion_threshold);
|
|
|
fuse_conn_put(fc);
|
|
|
|
|
|
return fuse_conn_limit_read(file, buf, len, ppos, val);
|