kernel-hacking-2024-linux-s.../fs/lockd
Jeff Layton 09802fd2a8 lockd: rip out deferred lock handling from testlock codepath
As Kinglong points out, the nlm_block->b_fl field is no longer used at
all. Also, vfs_test_lock in the generic locking code will only return
FILE_LOCK_DEFERRED if FL_SLEEP is set, and it isn't here.

The only other place that returns that value is the DLM lock code, but
it only does that in dlm_posix_lock, never in dlm_posix_get.

Remove all of the deferred locking code from the testlock codepath
since it doesn't appear to ever be used anyway.

I do have a small concern that this might cause a behavior change in the
case where you have a block already sitting on the list when the
testlock request comes in, but that looks like it doesn't really work
properly anyway. I think it's best to just pass that down to
vfs_test_lock and let the filesystem report that instead of trying to
infer what's going on with the lock by looking at an existing block.

Cc: cluster-devel@redhat.com
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
2014-09-09 16:01:09 -04:00
..
clnt4xdr.c nfsd: remove <linux/nfsd/nfsfh.h> 2014-05-06 17:54:53 -04:00
clntlock.c
clntproc.c
clntxdr.c nfsd: remove <linux/nfsd/nfsfh.h> 2014-05-06 17:54:53 -04:00
grace.c
host.c
Makefile
mon.c fs: lockd: Use ktime_get_ns() 2014-07-23 15:01:44 -07:00
netns.h
svc.c lockd: Do not start the lockd thread before we've set nlmsvc_rqst->rq_task 2014-09-02 17:49:17 -04:00
svc4proc.c
svclock.c lockd: rip out deferred lock handling from testlock codepath 2014-09-09 16:01:09 -04:00
svcproc.c
svcshare.c
svcsubs.c nfsd: move <linux/nfsd/export.h> to fs/nfsd 2014-05-06 17:54:54 -04:00
xdr.c nfsd: remove <linux/nfsd/nfsfh.h> 2014-05-06 17:54:53 -04:00
xdr4.c