aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-06-04 13:56:09 +0200
committerBernd Schubert <bschubert@ddn.com>2024-06-04 13:59:42 +0200
commitd44162534ce2e3a9e05a9fa5b399b9dcf02f6820 (patch)
treef90de6e414aedae4254b1b476bae7be8942156e1 /lib
parentcef8c8b249023fb8129ae791e0998cbca771f96a (diff)
downloadlibfuse-d44162534ce2e3a9e05a9fa5b399b9dcf02f6820.tar.gz
Make struct fuse_req::ctr a C11 _Atomic
The variable is not modified exclusively with locks since commit cef8c8b24902 ("Add support for no_interrupt") anymore. That commit is safe, but might be error prone to future updates. Changing it to a C11 _Atomic should avoid issues.
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 7a2ae04..a856782 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -14,7 +14,7 @@ struct mount_opts;
struct fuse_req {
struct fuse_session *se;
uint64_t unique;
- int ctr;
+ _Atomic int ctr;
pthread_mutex_t lock;
struct fuse_ctx ctx;
struct fuse_chan *ch;