From: Marc Eshel Date: Tue, 28 Nov 2006 21:27:06 +0000 (-0500) Subject: lockd: add code to handle deferred lock requests X-Git-Tag: v2.6.22-rc1~818^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a8322b2b02071b0c7ac37a28357b93e6362f13e;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed