From d44162534ce2e3a9e05a9fa5b399b9dcf02f6820 Mon Sep 17 00:00:00 2001
From: Bernd Schubert <bschubert@ddn.com>
Date: Tue, 4 Jun 2024 13:56:09 +0200
Subject: [PATCH] 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.
---
 lib/fuse_i.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.30.2