From: Marc Eshel Date: Wed, 6 Dec 2006 04:48:10 +0000 (-0500) Subject: lockd: always preallocate block in nlmsvc_lock() X-Git-Tag: v2.6.22-rc1~818^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f812048020282fdfa9b72a6cf539c33b6df1fd07;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed