nfs4: Use team_id instead of thread_id as lock owner
This commit is contained in:
parent
2a73e4c578
commit
574521e3f0
@ -704,7 +704,10 @@ Inode::AcquireLock(OpenFileCookie* cookie, const struct flock* lock,
|
|||||||
else
|
else
|
||||||
linfo->fLength = lock->l_len;
|
linfo->fLength = lock->l_len;
|
||||||
linfo->fType = sGetLockType(lock->l_type, wait);
|
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 {
|
do {
|
||||||
RPC::Server* serv = fFilesystem->Server();
|
RPC::Server* serv = fFilesystem->Server();
|
||||||
|
Loading…
Reference in New Issue
Block a user