aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/svclock.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
index cf51f849e76c..97b0160ef10f 100644
--- a/fs/lockd/svclock.c
+++ b/fs/lockd/svclock.c
@@ -426,15 +426,18 @@ nlmsvc_testlock(struct nlm_file *file, struct nlm_lock *lock,
426 (long long)lock->fl.fl_start, 426 (long long)lock->fl.fl_start,
427 (long long)lock->fl.fl_end); 427 (long long)lock->fl.fl_end);
428 428
429 if (posix_test_lock(file->f_file, &lock->fl, &conflock->fl)) { 429 if (posix_test_lock(file->f_file, &lock->fl)) {
430 dprintk("lockd: conflicting lock(ty=%d, %Ld-%Ld)\n", 430 dprintk("lockd: conflicting lock(ty=%d, %Ld-%Ld)\n",
431 conflock->fl.fl_type, 431 lock->fl.fl_type,
432 (long long)conflock->fl.fl_start, 432 (long long)lock->fl.fl_start,
433 (long long)conflock->fl.fl_end); 433 (long long)lock->fl.fl_end);
434 conflock->caller = "somehost"; /* FIXME */ 434 conflock->caller = "somehost"; /* FIXME */
435 conflock->len = strlen(conflock->caller); 435 conflock->len = strlen(conflock->caller);
436 conflock->oh.len = 0; /* don't return OH info */ 436 conflock->oh.len = 0; /* don't return OH info */
437 conflock->svid = conflock->fl.fl_pid; 437 conflock->svid = lock->fl.fl_pid;
438 conflock->fl.fl_type = lock->fl.fl_type;
439 conflock->fl.fl_start = lock->fl.fl_start;
440 conflock->fl.fl_end = lock->fl.fl_end;
438 return nlm_lck_denied; 441 return nlm_lck_denied;
439 } 442 }
440 443