diff options
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index d384a8b77ee8..aa5ecf479a57 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c | |||
@@ -183,7 +183,7 @@ static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) | |||
183 | else | 183 | else |
184 | flock.length = fl->fl_end - fl->fl_start + 1; | 184 | flock.length = fl->fl_end - fl->fl_start + 1; |
185 | flock.proc_id = fl->fl_pid; | 185 | flock.proc_id = fl->fl_pid; |
186 | flock.client_id = utsname()->nodename; | 186 | flock.client_id = fid->clnt->name; |
187 | if (IS_SETLKW(cmd)) | 187 | if (IS_SETLKW(cmd)) |
188 | flock.flags = P9_LOCK_FLAGS_BLOCK; | 188 | flock.flags = P9_LOCK_FLAGS_BLOCK; |
189 | 189 | ||
@@ -260,7 +260,7 @@ static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) | |||
260 | else | 260 | else |
261 | glock.length = fl->fl_end - fl->fl_start + 1; | 261 | glock.length = fl->fl_end - fl->fl_start + 1; |
262 | glock.proc_id = fl->fl_pid; | 262 | glock.proc_id = fl->fl_pid; |
263 | glock.client_id = utsname()->nodename; | 263 | glock.client_id = fid->clnt->name; |
264 | 264 | ||
265 | res = p9_client_getlock_dotl(fid, &glock); | 265 | res = p9_client_getlock_dotl(fid, &glock); |
266 | if (res < 0) | 266 | if (res < 0) |