aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorMarc Eshel <[email protected]>2006-11-28 21:27:06 +0000
committerJ. Bruce Fields <[email protected]>2007-05-07 00:38:50 +0000
commit1a8322b2b02071b0c7ac37a28357b93e6362f13e (patch)
tree04fbdd52d8b3c2886d70b3739b9dff683aa79f02 /lib/fault-inject.c
parentlockd: always preallocate block in nlmsvc_lock() (diff)
downloadkernel-1a8322b2b02071b0c7ac37a28357b93e6362f13e.tar.gz
kernel-1a8322b2b02071b0c7ac37a28357b93e6362f13e.zip
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 <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions