Skip to content

FUSE: Implement atomic lookup + open/create

Dharmendra Singh linux-fsdevel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 14 repliesIn review
  2. v43 patches 33 repliesSuperseded
  3. v33 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches8 repliesSuperseded
v12 patches2 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3FUSE: Avoid lookups in fuse createfs/fuse/dir.c fs/fuse/fuse_i.h include/uapi/linux/fuse.h+81 -124 replies
2/3FUSE: Rename fuse_create_open() to fuse_atomic_common()fs/fuse/dir.c+7 -70 replies
3/3FUSE: Implement atomic lookup + openfs/fuse/dir.c fs/fuse/fuse_i.h include/uapi/linux/fuse.h+84 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] FUSE: Implement atomic lookup + open/create

In FUSE, as of now, uncached lookups are expensive over the wire. E.g additional latencies and stressing (meta data) servers from thousands of clients. These lookup calls possibly can be avoided in some cases. Incoming three patches address this issue.

Fist patch handles the case where we are creating a file with O_CREAT. Before we go for file creation, we do a lookup on the file which is most likely non-existent. After this lookup is done, we again go into libfuse to create file. Such lookups where file is most likely non-existent, can be avoided.

Second patch handles the case where we open first time a file/dir but do a lookup first on it. After lookup is performed we make another call into libfuse to open the file. Now these two separate calls into libfuse can be combined and performed as a single call into libfuse.

Here is the link to performance numbers
https://lore.kernel.org/linux-fsdevel/[email protected]/

Dharmendra Singh (3):
FUSE: Avoid lookups in fuse create
FUSE: Rename fuse_create_open() to fuse_atomic_common() Implement atomic lookup + open

 fs/fuse/dir.c             | 149 +++++++++++++++++++++++++++++++++-----
 fs/fuse/fuse_i.h          |   9 +++
 include/uapi/linux/fuse.h |   5 +-
 3 files changed, 143 insertions(+), 20 deletions(-)

---
v4: Addressed all comments and refactored the code into 3 patches for extended
create and atomic open. Dropped the patch for optimizing lookup in d_revalidate().
---