linux/fs/lockd
Marc Eshel 1a8322b2b0 lockd: add code to handle deferred lock requests
Rewrite nlmsvc_lock() to use the asynchronous interface.

As with testlock, we answer nlm requests in nlmsvc_lock by first looking up
the block and then using the results we find in the block if B_QUEUED is
set, and calling vfs_lock_file() otherwise.

If this a new lock request and we get -EINPROGRESS return on a non-blocking
request then we defer the request.

Also modify nlmsvc_unlock() to call the filesystem method if appropriate.

Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2007-05-06 20:38:50 -04:00
..
clntlock.c [PATCH] fs/lockd/clntlock.c: add missing newlines to dprintk's 2007-01-30 08:26:45 -08:00
clntproc.c NLM: Fix double free in __nlm_async_call 2007-02-03 15:35:02 -08:00
host.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mon.c [PATCH] lockd endianness annotations 2006-10-20 10:26:40 -07:00
svc4proc.c lockd: add code to handle deferred lock requests 2007-05-06 20:38:50 -04:00
svc.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
svclock.c lockd: add code to handle deferred lock requests 2007-05-06 20:38:50 -04:00
svcproc.c lockd: add code to handle deferred lock requests 2007-05-06 20:38:50 -04:00
svcshare.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
svcsubs.c lockd: add code to handle deferred lock requests 2007-05-06 20:38:50 -04:00
xdr4.c [PATCH] lockd endianness annotations 2006-12-13 09:05:52 -08:00
xdr.c [PATCH] lockd endianness annotations 2006-12-13 09:05:52 -08:00