From 574521e3f0bd627db257165553af97cb40128fcb Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Mon, 2 Jul 2012 19:03:19 +0200 Subject: [PATCH] nfs4: Use team_id instead of thread_id as lock owner --- src/add-ons/kernel/file_systems/nfs4/Inode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/nfs4/Inode.cpp b/src/add-ons/kernel/file_systems/nfs4/Inode.cpp index 37f16c5b56..5ee4849e43 100644 --- a/src/add-ons/kernel/file_systems/nfs4/Inode.cpp +++ b/src/add-ons/kernel/file_systems/nfs4/Inode.cpp @@ -704,7 +704,10 @@ Inode::AcquireLock(OpenFileCookie* cookie, const struct flock* lock, else linfo->fLength = lock->l_len; linfo->fType = sGetLockType(lock->l_type, wait); - linfo->fOwner = find_thread(NULL); + + thread_info info; + get_thread_info(find_thread(NULL), &info); + linfo->fOwner = info.team; do { RPC::Server* serv = fFilesystem->Server();