From e7c76f21cb165bf34c6b324ebf72a3d4bde21a61 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 12 Apr 2024 09:02:54 -0500 Subject: [PATCH] fuse_open.cpp --- src/fuse_open.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fuse_open.cpp b/src/fuse_open.cpp index 858bb10f..9f5f37c8 100644 --- a/src/fuse_open.cpp +++ b/src/fuse_open.cpp @@ -35,6 +35,12 @@ #include #include +struct PT +{ + int backing_id; + std::mutex mutex; +}; + static boost::unordered::concurrent_flat_map pt; @@ -328,7 +334,8 @@ namespace FUSE open(const char *fusepath_, fuse_file_info_t *ffi_) { - + pt.try_emplace_or_visit(fusepath_, + return open2(fusepath_,ffi_);