nfs4: Use team_id instead of thread_id as lock owner

This commit is contained in:
Pawel Dziepak 2012-07-02 19:03:19 +02:00
parent 2a73e4c578
commit 574521e3f0

View File

@ -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();