Skip to content

Commit 8f9361e

Browse files
committed
libcephfs_proxy: workaround for delays and hangs in the proxy
When ceph_ll_lookup() is done on ".", it returns a new reference to the parent inode itself. However this may cause some delays or problems on disconnect (see https://tracker.ceph.com/issues/70553). However, if "." is replaced by "", we still get a new reference to the parent inode (which is what we really need), without causing any side effect. This patch uses this alternative in the libcephfs proxy to avoid the problem. Signed-off-by: Xavi Hernandez <[email protected]>
1 parent 9ea4513 commit 8f9361e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcephfs_proxy/proxy_mount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ int32_t proxy_path_resolve(proxy_mount_t *mount, const char *path,
470470
}
471471

472472
if (err >= 0) {
473-
err = proxy_path_lookup(proxy_cmount(mount), iter.base, ".",
473+
err = proxy_path_lookup(proxy_cmount(mount), iter.base, "",
474474
inode, stx, want, flags, iter.perms);
475475
}
476476

0 commit comments

Comments
 (0)