features/locks: Use fuse supplied lock owner even for internal locks.

Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 934 (md5sum mismatch when files are transferred using vsftpd)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=934
This commit is contained in:
Pavan Sondur 2010-05-24 14:16:17 +00:00 committed by Anand V. Avati
parent 5e849ce81a
commit 4d195fb92f
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ __lock_name (pl_inode_t *pinode, const char *basename, entrylk_type type,
trans = frame->root->trans;
client_pid = frame->root->pid;
owner = (uint64_t)(long)frame->root;
owner = frame->root->lk_owner;
lock = new_entrylk_lock (pinode, basename, type, trans, client_pid, owner, dom->domain);
if (!lock) {

View File

@ -570,7 +570,7 @@ pl_common_inodelk (call_frame_t *frame, xlator_t *this,
transport = frame->root->trans;
client_pid = frame->root->pid;
owner = (uint64_t) (long)frame->root;
owner = frame->root->lk_owner;
pinode = pl_inode_get (this, inode);
if (!pinode) {