diff options
author | Marc Eshel <eshel@almaden.ibm.com> | 2006-12-06 05:48:10 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2007-05-07 02:38:50 +0200 |
commit | f812048020282fdfa9b72a6cf539c33b6df1fd07 (patch) | |
tree | e4f281027da1f0e907e68b2e26ae5b773a967047 /fs/lockd/svcproc.c | |
parent | lockd: handle test_lock deferrals (diff) | |
download | linux-f812048020282fdfa9b72a6cf539c33b6df1fd07.tar.xz linux-f812048020282fdfa9b72a6cf539c33b6df1fd07.zip |
lockd: always preallocate block in nlmsvc_lock()
Normally we could skip ever having to allocate a block in the case where
the client asks for a non-blocking lock, or asks for a blocking lock that
succeeds immediately.
However we're going to want to always look up a block first in order to
check whether we're revisiting a deferred lock call, and to be prepared to
handle the case where the filesystem returns -EINPROGRESS--in that case we
want to make sure the lock we've given the filesystem is the one embedded
in the block that we'll use to track the deferred request.
Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd/svcproc.c')
0 files changed, 0 insertions, 0 deletions