[Bugs] [Bug 1390914] Glusterfs create a flock lock by anonymous fd, but can' t release it forever.
bugzilla at redhat.com
bugzilla at redhat.com
Tue Nov 8 08:33:05 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1390914
--- Comment #3 from xiaopwu <xiaoping.wu at nokia.com> ---
We added a patch for this issue, please check if it is ok.
--- a/old/client-rpc-fops.c
+++ b/new/client-rpc-fops.c
@@ -5260,6 +5260,14 @@ client3_3_lk (call_frame_t *frame, xlator_t *this,
CLIENT_GET_REMOTE_FD (this, args->fd, DEFAULT_REMOTE_FD,
remote_fd, op_errno, unwind);
+ if(remote_fd < 0)
+ {
+ gf_log (this->name, GF_LOG_INFO, "Didn't open remote fd(%ld), but
return EBADFD, AFR shall ignore such error. pid: %u ", remote_fd,
frame->root->pid);
+ op_errno = EBADFD;
+ CLIENT_STACK_UNWIND (lk, frame, -1, op_errno, NULL, NULL);
+ return 0;
+ }
+
ret = client_cmd_to_gf_cmd (args->cmd, &gf_cmd);
if (ret) {
op_errno = EINVAL;
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list