From 52a1d1ecce732efd9a3027511530334af144ff64 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 4 Dec 2008 14:21:01 -0500 Subject: [PATCH] --- yaml --- r: 127448 b: refs/heads/master c: 501c1ed3fb5c2648ba1709282c71617910917f66 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/lockd/clntproc.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 8e31308e2392..ca28534dabc6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9fee49024ed19d849413df4ab6ec1a1a60aaae94 +refs/heads/master: 501c1ed3fb5c2648ba1709282c71617910917f66 diff --git a/trunk/fs/lockd/clntproc.c b/trunk/fs/lockd/clntproc.c index 31668b690e03..5ce42e0ed4a0 100644 --- a/trunk/fs/lockd/clntproc.c +++ b/trunk/fs/lockd/clntproc.c @@ -518,11 +518,9 @@ nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) unsigned char fl_type; int status = -ENOLCK; - if (nsm_monitor(host) < 0) { - printk(KERN_NOTICE "lockd: failed to monitor %s\n", - host->h_name); + if (nsm_monitor(host) < 0) goto out; - } + fl->fl_flags |= FL_ACCESS; status = do_vfs_lock(fl); fl->fl_flags = fl_flags;